First post
This commit is contained in:
19
markdown.js
Normal file
19
markdown.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
const toHtml = () => {
|
||||||
|
return `<div>markdown</div>`;
|
||||||
|
};
|
||||||
|
|
||||||
|
const singleSymbols = [
|
||||||
|
"#",
|
||||||
|
"##",
|
||||||
|
"###",
|
||||||
|
"####",
|
||||||
|
"#####",
|
||||||
|
"######",
|
||||||
|
"-",
|
||||||
|
"- []",
|
||||||
|
"- [ ]",
|
||||||
|
];
|
||||||
|
|
||||||
|
const doubleSymbols = ["*", "**", "_", "__", "`", "```"];
|
||||||
|
|
||||||
|
const symbols = {};
|
||||||
@@ -1,6 +1,64 @@
|
|||||||
# Initial commit
|
# Initial commit
|
||||||
|
|
||||||
Testing
|
_2023-09-15_
|
||||||
|
|
||||||
- testing
|
I've been thinking a long time about having a place to publicly publish things.
|
||||||
[testing](https://blog.zacke.dev)
|
I'm not really into doing that on social media since it would lock my content in their format and make it hard to move anywhere else so i thought i would just write my "things" in plain markdown and then find a way of hosting them online.
|
||||||
|
|
||||||
|
Sure there's a lot of static site generators out there and a couple of them could probably be configured to work the way i want it to. However to me there is a joy in using things that I have built on my own so first i will try building something from scratch.
|
||||||
|
|
||||||
|
It will be very simple, atleast in the beginning.
|
||||||
|
A list of directories will represent individual posts.
|
||||||
|
Each directory will have a markdown file, asset directory and if needed some picture inside of there as well.
|
||||||
|
|
||||||
|
A node script will traverse the directories, keeping track of the name of the post, its markdown content and the assets referenced.
|
||||||
|
Then the markdown will be converted into html and placed in a post html template that i can use to have common layouts and styling between each every post.
|
||||||
|
All posts will be copied to an output directory together with an index file that has links to all my posts.
|
||||||
|
|
||||||
|
Will it be pretty?
|
||||||
|
Probably not.
|
||||||
|
But it's a start!
|
||||||
|
|
||||||
|
Oh and I need some test markdown symbols to practice on..
|
||||||
|
|
||||||
|
# H1
|
||||||
|
|
||||||
|
## H2
|
||||||
|
|
||||||
|
### H3
|
||||||
|
|
||||||
|
#### H4
|
||||||
|
|
||||||
|
##### H5
|
||||||
|
|
||||||
|
###### H6
|
||||||
|
|
||||||
|
_Italics_
|
||||||
|
|
||||||
|
**Bold**
|
||||||
|
|
||||||
|
`Single line of code`
|
||||||
|
|
||||||
|
```
|
||||||
|
Multi
|
||||||
|
Line
|
||||||
|
Of
|
||||||
|
Code
|
||||||
|
```
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
// Multi line code snippet with typescript syntax highlighting
|
||||||
|
const x: string = "arst";
|
||||||
|
```
|
||||||
|
|
||||||
|
- bullet
|
||||||
|
- bullet
|
||||||
|
- bullet
|
||||||
|
|
||||||
|
1. ordered list item
|
||||||
|
1. ordered list item
|
||||||
|
1. ordered list item
|
||||||
|
|
||||||
|
[link to the index](https://blog.zacke.dev)
|
||||||
|
|
||||||
|

|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.3 KiB |
@@ -1,6 +0,0 @@
|
|||||||
# Initial commit
|
|
||||||
|
|
||||||
Testing
|
|
||||||
|
|
||||||
- testing
|
|
||||||
[testing](https://blog.zacke.dev)
|
|
||||||
Reference in New Issue
Block a user