Skip to content

v1.3.0 - Inline ADF tag passthrough support

Choose a tag to compare

@merphx merphx released this 14 Apr 02:33
· 7 commits to feat/inline-adf-tag since this release
4dbd4f3

Note

Note to self:
To test out the library locally, add the following to package.json:

{
  // ...
  "dependencies": {
    // ...
    "marklassian": "https://github.com/merphx/marklassian/releases/download/v1.3.0/marklassian-1.3.0.tgz"
  }
}

Note that the library files are in a subdirectory (lib/) so in order for this to work the built dist must also be attached to the GH release assets!

What's new

feat: inline <adf> tag passthrough

Pass raw ADF nodes directly in Markdown using inline <adf>{type:...}</adf> syntax. The JSON content is parsed and inserted into the ADF output as a native node, allowing arbitrary ADF structures that Markdown cannot express.

Here is some text with an inline rule: <adf>{"type":"rule"}</adf> and more text.

fix: use local Marked instance

marklassian now uses its own local Marked instance instead of the global singleton, preventing side-effects on consumers who use marked directly elsewhere in their app.

fix: case-insensitive start()

The Marked extension's start() method now matches <adf> tags case-insensitively.

Commits since v1.2.1

  • feat: intercept inline <adf> tags via marked extension
  • fix: use local Marked instance to avoid singleton mutation
  • fix: case-insensitive start(), document marked singleton side-effect
  • docs: update README for inline <adf> support