dannysmith / dannyis-jekyll

0 stars 0 forks source link

Fix hack to replace markdown links with liquid tags #41

Open dannysmith opened 4 years ago

dannysmith commented 4 years ago

https://github.com/dannysmith/dannyis-jekyll/commit/9f6d15db0ed7ea58793a8dec1c32f1ef31f1213b introduces a hack in _posts/2020-03-14-website-redesign-i.md which replaces all markdown links with a responsive image tag.

It uses simple REgEx to do so which is super hacky and horrible.

It also leads to bugs because it parses code inside fenced code blocks. Thus, any markdown image markup inside a code block will be replaced with a liquid tag.

dannysmith commented 2 years ago

https://alexgude.com/blog/custom-markdown-for-github-pages/ ?

Alex Gude
Making Custom Markdown for Github Pages
I love Markdown, I take all my notes in it and write my blog in it. But sometimes you want to create new syntax; read on to find out how!