MarkDown using JavaScript Parser and Purify
Posted: Thu Oct 03, 2024 10:46 pm
Hi all,
This is merly a question, but I wonder if there's an interest to use a MarkDown editor which uses JavaScript to parse (MD to HTML) and JavaScript to purify the content before it is parsed?
Design, layout, UI, etc will come. But before I spend time one that, I just wanted to ask. A MD > HTML (editor, parser and purify) takes about 40kb in total to create. SVG will be used for icons and if needed, I can add a toolbar (another 12kb of JS).
Goal: less dependet on external libraries for parsing, icons, etc. It would make the frontend even faster and with similar additions, the backend can be smaller as well.
This is merly a question, but I wonder if there's an interest to use a MarkDown editor which uses JavaScript to parse (MD to HTML) and JavaScript to purify the content before it is parsed?
Design, layout, UI, etc will come. But before I spend time one that, I just wanted to ask. A MD > HTML (editor, parser and purify) takes about 40kb in total to create. SVG will be used for icons and if needed, I can add a toolbar (another 12kb of JS).
Goal: less dependet on external libraries for parsing, icons, etc. It would make the frontend even faster and with similar additions, the backend can be smaller as well.