Skip to content

Releases

@markdoc/[email protected]

Choose a tag to compare

@github-actions github-actions released this 19 Nov 17:09
ec9438b

Patch Changes

  • cfe43ee: Harden heading level handling and HTML tag and attribute name serialization in the HTML renderer. The HTML renderer also omits null and undefined attribute values.

@markdoc/[email protected]

Choose a tag to compare

@github-actions github-actions released this 16 Nov 22:09
a54f75b

Minor Changes

  • 9b86bd3: Support native App Router Markdown routes with automatic app/pages directory discovery for Turbopack and Webpack, including src directories and mixed-router projects. The project directory now defaults to the working directory for Turbopack.

    Emit configured nextjs frontmatter as literal static exports so Next.js can analyze metadata and route settings. Colocated Markdown stays an importable synchronous component. App Router page/layout modules now export only their component and configured Next.js exports; import ordinary Markdown when the markdoc.frontmatter export is needed.

    Generate App Router metadata from top-level title and description frontmatter, with optional nextjs.metadata overrides. Documents no longer need nested frontmatter for basic page metadata.

Patch Changes

  • bb3b876: Generate TypeScript declarations from the Next.js integration's implementation,
    including types for the loader, runtime helpers, and built-in tags. Add types for
    the existing nextjsExports and tokenizer options and allow an omitted Next.js
    configuration when calling the plugin. CommonJS and ESM imports continue to use
    the same package entry points.

@markdoc/[email protected]

Choose a tag to compare

@github-actions github-actions released this 13 Nov 18:38
30a77b3

Patch Changes

  • 7aee867: Publish the Next.js integration from the Markdoc monorepo, with updated repository links and a package containing only its source, README, and license. The package name, entry points, and peer dependency ranges are unchanged.

    Avoid excessive work when deriving Turbopack rules from custom extension patterns.

v0.5.12

Choose a tag to compare

@joelzwarrington joelzwarrington released this 10 Nov 16:10
4089524

What's Changed

New Contributors

Full Changelog: v0.5.11...v0.5.12

v0.5.11

Choose a tag to compare

@joelzwarrington joelzwarrington released this 26 Oct 20:50
9440a1d

What's Changed

Full Changelog: v0.5.10...v0.5.11

v0.5.10

Choose a tag to compare

@joelzwarrington joelzwarrington released this 16 Sep 16:47
16e1840

What's Changed

New Contributors

Full Changelog: 0.5.9...v0.5.10

0.5.9

Choose a tag to compare

@yue-stripe yue-stripe released this 04 Aug 13:30
afee1a4

What's Changed

Full Changelog: 0.5.8...0.5.9

0.5.8

Choose a tag to compare

@rayc-stripe rayc-stripe released this 15 Jul 17:17
d351d70

What's Changed

  • Make link validation available by @chanyunh-stripe in #624
    • Enhanced link validation can be enabled by setting allowLinkValidation in the config.
    • The enhanced validation can capture Markdoc variables/tags in the URL. For example, https://example.{% custom-tag /%}.com would emit a validation error.

Full Changelog: 0.5.7...0.5.8

0.5.7

Choose a tag to compare

@joelzwarrington joelzwarrington released this 26 Mar 03:37
4c772e1

What's Changed

  • Make table-syntax validation error location more precise by @yue-stripe in #605
    • the validate() method now returns more location/line info than before
    • Build output now includes ES2022 syntax. The esbuild version used to build markdoc was upgraded from 0.13 to 0.25, which raises the effective output target from ~ES2020 to ES2022+. If your build pipeline transpiles @markdoc/markdoc, you may need to ensure your toolchain supports ES2022 features such as static class blocks.

Full Changelog: 0.5.6...0.5.7

v0.5.6

Choose a tag to compare

@yue-stripe yue-stripe released this 10 Mar 18:55
6b9dc5e

What's Changed

  • Add validation for invalid Markdoc table syntax by @yue-stripe in #603
    • Markdoc.validate will now raise errors for invalid syntax within {% table %} tags.

Full Changelog: 0.5.5...0.5.6