Tag:markdown

Pug with Markdown is Magic, yet underrated

What is Pug?

Pug is a high-performance template engine heavily influenced by Haml and implemented with JavaScript for Node.js and browsers.

Pug uses whitespace syntax, and is Tab / Space -sensitive, just like Markdown and Python

Pug is mainly a template engine for Node.js, and cannot be installed for Webpack via NPM/Yarn, however there is https://github.com/pugjs/pug#browser-support but it is a very large file. However, I created HyperPug a while ago, and it is relatively small.

Injecting unsafe HTML into Bolt entries + CodeMirror/UIKit editor

By default, both Markdown field and HTML field is available for Bolt CMS, but sanitation is done before inserting into the database, making rendering of certain elements impossible; especially, for those starting with < (Unless you use &lt;).

So, I fixed this while preserving the editor (CodeMirror/UIKit) here.