miniblog.

← Back to all posts
22
Today I learnt that you can mix HTML inline in markdown! For example, the following is valid. Foo <hr/> I'd assumed that you needed HTML separately, like ``` blocks, but no: https://spec.commonmark.org/0.31.2/#raw-html Admittedly HTML is very restricted on most sites, but it's helpful for SSGs.

2 Comments

@wilfredh I like using `<br>` instead of using two trailing spaces.
@wilfredh Not everywhere! It depends on the parser they are using. And there are many custom parsers out there. GitHub's for instance is unique, but does allow some subset of HTML