Skip to content

v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Nov 19:22
2f5e54e
  • New package: rehype-tsquare, the same plugin on HTML instead of Markdown: it turns <pre><code class="language-tsquare"> into boards, so it works wherever rehype plugins run (Docusaurus, Astro, Starlight, MDX, HTML pages). Same options and the same HTML as the other two. A syntax highlighter that runs first turns the blocks into plain code (Astro's does, unless excludeLangs has "tsquare"); the plugin notices (a code block in the page has exactly the text of a tsquare fence in its source) and warns with the setting to add (strict fails the build).
  • Works with tsquare 0.14 as well as 0.13 (from 0.13.2), so a site on tsquare 0.14 shares one copy with the plugins.
  • The npm pages link to https://tsquare.dev/docs/markdown-plugins (package.json homepage), each to its own section with setup for its frameworks. The source stays linked as the repository.