diff --git a/markdown.js b/markdown.js new file mode 100644 index 0000000..e03c369 --- /dev/null +++ b/markdown.js @@ -0,0 +1,19 @@ +const toHtml = () => { + return `
markdown
`; +}; + +const singleSymbols = [ + "#", + "##", + "###", + "####", + "#####", + "######", + "-", + "- []", + "- [ ]", +]; + +const doubleSymbols = ["*", "**", "_", "__", "`", "```"]; + +const symbols = {}; diff --git a/notes/1-initial-commit/note.md b/notes/1-initial-commit/note.md index a0e5637..8bd5e98 100644 --- a/notes/1-initial-commit/note.md +++ b/notes/1-initial-commit/note.md @@ -1,6 +1,64 @@ # Initial commit -Testing +_2023-09-15_ -- testing - [testing](https://blog.zacke.dev) +I've been thinking a long time about having a place to publicly publish things. +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) + +![alt-text](@asset/picture.png) diff --git a/notes/2-a-test/assets/git.png b/notes/2-a-test/assets/git.png deleted file mode 100644 index ae2bd67..0000000 Binary files a/notes/2-a-test/assets/git.png and /dev/null differ diff --git a/notes/2-a-test/note.md b/notes/2-a-test/note.md deleted file mode 100644 index a0e5637..0000000 --- a/notes/2-a-test/note.md +++ /dev/null @@ -1,6 +0,0 @@ -# Initial commit - -Testing - -- testing - [testing](https://blog.zacke.dev)