3 ms·
I really like it. I was just thinking of writing a markdown to custom HTML parser for my own needs and found markdown syntax to be lacking to express my HTML ta
by reacharavindh 9y ago
I really like it. I was just thinking of writing a markdown to custom HTML parser for my own needs and found markdown syntax to be lacking to express my HTML tags.
I can choose SunDown format for it.
Do you have a parser that converts SunDown to HTML already?
I can build it as my first project in Rust while attempting to learn it.
- emacsgifs 9y ago> for my own needs and found markdown syntax to be lacking to express my HTML tags This is a little strange tbh. The majority of markdown parsers will allow inline html elements too. If you're trying to do a large structured document, which will need block specific styling, try Pug. (Formerly Jade.) HAML & Slim also solve similar problems and have the benefit of a pretty significant userbase. (All support embedded Markdown) Sundown is looking very much like a naive and poorly thought out also ran.
- reacharavindh 9y agoI'm admittedly naive in this front of anything JavaScript/npm/gulp/yarn/many other tools. They always seem to be over complicated for my interest. Quickly reading about pug feels like it converts templates to some JS files which I don't want. I'd like a Markdown/SunDown/custom markup to one inlined HTML, which I can deploy wherever I want..
- emacsgifs 9y agoHaml or Slim are a better bet than Pug then. Nb: pug aka Jade used to convert direct to HTML, I also lament the "everything the JavaScript" silliness.