Repository navigation
Releases
@markdoc/[email protected]
Patch Changes
- cfe43ee: Harden heading level handling and HTML tag and attribute name serialization in the HTML renderer. The HTML renderer also omits
nullandundefinedattribute values.
@markdoc/[email protected]
Minor Changes
-
9b86bd3: Support native App Router Markdown routes with automatic
app/pagesdirectory discovery for Turbopack and Webpack, includingsrcdirectories and mixed-router projects. The project directory now defaults to the working directory for Turbopack.Emit configured
nextjsfrontmatter 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 themarkdoc.frontmatterexport is needed.Generate App Router metadata from top-level
titleanddescriptionfrontmatter, with optionalnextjs.metadataoverrides. 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 existingnextjsExportsand 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]
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
What's Changed
- fix: make published TypeScript declarations usable in clean installs by @stevekaliski-stripe in #656
- chore: replace ts-eager with tsx by @stevekaliski-stripe in #657
- use pnpm by @stevekaliski-stripe in #658
- update deps and min release age by @stevekaliski-stripe in #659
- Prepare v0.5.12 release by @stevekaliski-stripe in #660
New Contributors
- @stevekaliski-stripe made their first contribution in #656
Full Changelog: v0.5.11...v0.5.12
v0.5.11
What's Changed
- Bump markdown-it to 15.0.1 by @joelzwarrington in #639
- Fix type error when slicing annotation block content by @joelzwarrington in #650
- Use environment for release by @joelzwarrington in #649
Full Changelog: v0.5.10...v0.5.11
v0.5.10
What's Changed
- Fix package-lock.json version by @joelzwarrington in #636
- Bump tmp from 0.2.5 to 0.2.7 in the npm_and_yarn group across 1 directory by @dependabot[bot] in #626
- Formatter: prefix every line of a blockquote's children with
>by @nsafai in #640 - Prepare v0.5.10 release by @joelzwarrington in #644
- Parse multi-line tag openings inside blockquotes by @nsafai in #642
New Contributors
Full Changelog: 0.5.9...v0.5.10
0.5.9
What's Changed
- Make Schema.children strongly typed by @yue-stripe in #633
Full Changelog: 0.5.8...0.5.9
0.5.8
What's Changed
- Make link validation available by @chanyunh-stripe in #624
- Enhanced link validation can be enabled by setting
allowLinkValidationin the config. - The enhanced validation can capture Markdoc variables/tags in the URL. For example,
https://example.{% custom-tag /%}.comwould emit a validation error.
- Enhanced link validation can be enabled by setting
Full Changelog: 0.5.7...0.5.8
0.5.7
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.
- the
Full Changelog: 0.5.6...0.5.7
v0.5.6
What's Changed
- Add validation for invalid Markdoc table syntax by @yue-stripe in #603
Markdoc.validatewill now raise errors for invalid syntax within{% table %}tags.
Full Changelog: 0.5.5...0.5.6