DEV Community

Discussion on: Markdown Editor with JavaScript

Collapse
 
efpage profile image
Eckehard

Hy Joel,

I tried to extend the Markdown-Approach to create entire websites. This is a bit experimental, but works pretty well. Please check out this page to see an example:

efpage.de/DML/DML_homepage/

The whole webpage contains only two HTML-templates, some javascript to implement the Markdown-parser, but the content is written down in markdowns

If you check out the index.html, you will find it is pretty short. But there is no CMS behind, the whole content is written files named content1.js., content2.js ...

Inside content1.js, you will find mostly text, for convenience this is jus encapsulated in a string named head or content:

let content =
` #DML building blocks overview...
...

So, the whole pagesetup is pretty simple using only some self defined MARKUP.

I think, Markups can be pretty powerful, and we could really do much more than writing quick text.

Best regards,
Eckehard