Commit Graph

2 Commits

Author SHA1 Message Date
Qi Xiao
a4589bcdf0 pkg/md: Refine formatting style.
- Try to avoid escaping & and < when they are not problematic.

- Escape non-breaking space.

- Format lists as loose lists.

- Only indent inline raw HTML when it can actually be parsed as a
  paragraph-interrupting HTML block.
2022-11-04 18:09:17 +00:00
Qi Xiao
b901b49f12 cmd/elvmdfmt: Split Markdown formatting into own command, supporting -w and -d.
Also change the behavior of the rendering command (elvmd) to still output HTML
when given -trace.
2022-11-04 16:37:47 +00:00