Skip to content

v0.10.0

Choose a tag to compare

@omaclaren omaclaren released this 16 Oct 10:41
· 72 commits to master since this release

<details> blocks, and rendered content can't run scripts.

  • A <details> block, with an optional <summary>, collapses in the preview as on GitHub and starts closed unless marked open. Open content is indented under its summary with a rule down its left side, so nested blocks are easy to follow.
  • Tags are recognised only when they stand alone at the start of a line and pair properly. Tags in code, maths, comments or front matter, and indented, attributed or inline tags, stay literal. Raw HTML stays off.
  • Rendered content can't run scripts. Every render drops event-handler attributes and unlinks javascript:, vbscript: and livescript: link and image targets. MathJax runs with its safe extension, and links in rendered maths with a script scheme lose their target. Pages also keep their script policy, which allows only the page's own scripts.
  • Same renderer as pi-markdown-preview 0.23.0.