summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2025-03-12Add `experimental.headingIdCompat` flag (#13352)Gravatar Chris Swithinbank 3-10/+29
* Add `experimental.headingIdCompat` option schema & types * Markdown and MDX support * Markdoc support * Add changeset * Fix missing argument in Markdoc integration * Improve JSDoc comment Co-authored-by: Matt Kane <m@mk.gg> * Refactor to avoid global context object in Markdoc * Minor changeset tweak * Make `rehypeHeadingIds()` argument optional for backwards compatibility * Add doc comment to `rehypeHeadingIds()` * Document rehype plugin usage in changeset --------- Co-authored-by: Matt Kane <m@mk.gg>
2024-12-11chore: remove unused imports (#12696)Gravatar Florian Lefebvre 1-0/+1
2024-12-10fix(svg): conditional opt-in (#12694)Gravatar Emanuele Stoppa 1-0/+1
* fix(svg): conditional opt-in * add todo * Update packages/astro/src/assets/utils/node/emitAsset.ts Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-12-02fix(markdoc): correctly render boolean HTML attributes (#12584)Gravatar Matt Kane 1-0/+39
2024-10-10Merge branch 'main' into nextGravatar bluwy 1-1/+1
2024-10-08chore: move lint rules to Biome (#12145)Gravatar Emanuele Stoppa 1-1/+1
* chore: move lint rules to Astro * better suppression system * revert * format code * address more linting files * address more linting files
2024-09-26Parse frontmatter ourselves (#12075)Gravatar Bjorn Lu 1-26/+17
2024-09-02Refactor createShikiHighlighter (#11825)Gravatar Bjorn Lu 1-2/+10
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-27chore: enable `useImportType` rule (#11848)Gravatar Emanuele Stoppa 1-1/+1
2024-08-27fix(markdoc): use astro components defined with `extends` (#11846)Gravatar HiDeoo 1-2/+2
2024-08-08update formatter config (#11640)Gravatar Darius 8-22/+22
* update formatter config * format --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-08-07Improve regex performance (#11635)Gravatar Bjorn Lu 1-2/+2
2024-07-17[ci] formatGravatar Fugi 1-1/+0
2024-07-17feat(markdoc): Support markdown-it's typographer option (#11450)Gravatar Peter Schilling 2-0/+6
* Support markdoc-it's typographer option in markdoc * Update .changeset/forty-scissors-jog.md [skip ci] * Update .changeset/forty-scissors-jog.md [skip ci] * Fix typo in changeset --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-04-17[ci] formatGravatar Emanuele Stoppa 2-3/+3
2024-04-03feat: automatic Markdoc partial resolution (#10649)Gravatar Ben Holmes 1-38/+164
* wip: react counter example * feat: resolve markdoc partials by file path * test: components within partials * test: html within partial * chore: changeset * fix: respect user configured partials * test: basic partials * chore: lock * chore: fix lock * chore: minor -> patch * fix: use --parallel for dev server timeout error * refactor: move component tests to separate file * fix: build indent fixture * fix: check before addWatchFile * refactor: rootRelative -> relativePartial * deps: use workspace react integration * refactor: split test files by fixture * refactor: switch to preact to avoid react prod build error * feat: use vite pluginContext * fix: handle missing ./ * chore: bump timeout
2024-04-01Lazy loaded shiki languages during syntax highlighting (#10618)Gravatar James Garbutt 1-2/+2
2024-03-20Pass meta to shiki transformers (#10494)Gravatar Bjorn Lu 1-0/+3
2024-03-13Revert "[ci] format" (#10417)Gravatar Emanuele Stoppa 2-3/+3
* Revert "[ci] format" This reverts commit 1863727215e87e20c6f5aebe5f9ee0f2783bc788. * pin dependency * update lock
2024-03-13[ci] formatGravatar Houston (Bot) 2-3/+3
2024-03-01fix(markdoc & mdx): Proxy crimes (#10278)Gravatar Erika 1-1/+13
* fix(markdoc & mdx): Proxy cimes * chore: changeset
2024-02-27chore: import sort source code, exception for the `astro` package (#10242)Gravatar Emanuele Stoppa 4-8/+8
* chore: import sort source code, exception for the `astro` package * fix import sorting bug * Update packages/integrations/lit/server.js Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-02-08feat(markdoc): Add support for using a custom component for images (#9958)Gravatar Erika 1-21/+28
* feat(markdoc): Add support for using a custom component for images * chore: changeset * test: add test * Update .changeset/shaggy-spies-sit.md Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> --------- Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-02-07Use eslint-plugin-regexp (#9993)Gravatar Bjorn Lu 2-3/+5
2023-11-30[ci] formatGravatar Bjorn Lu 1-1/+1
2023-11-17Support Vite 5 (#9122)Gravatar Bjorn Lu 1-3/+2
2023-11-14[ci] formatGravatar bluwy 1-1/+1
2023-11-14Refactor shikiji syntax highlighting code (#9083)Gravatar Bjorn Lu 1-100/+5
2023-10-27Fix: Markdoc Integration build when root folder contains spaces (#8759)Gravatar Luca Di Gianventura 1-2/+2
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-10-24feat(markdoc): allowIndentation integration option (#8802)Gravatar AndyClifford 2-1/+6
2023-10-12Use shikiji (#8502)Gravatar Bjorn Lu 1-18/+30
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-13config: migrate us to moduleResolution: 'node16' (#8519)Gravatar Erika 2-2/+3
2023-08-21Remove pre-shiki v0.14 theme names (#8169)Gravatar Bjorn Lu 1-21/+0
2023-08-16feat: unflag experimental.assets (#7921)Gravatar Erika 3-21/+13
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-08feat: upper case the name of the endpoints (#7783)Gravatar Emanuele Stoppa 1-1/+1
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-08-08chore: fix rebase problemsGravatar Emanuele Stoppa 1-1/+0
2023-08-08Remove support for Node 16 (#7780)Gravatar Erika 4-16/+8
2023-07-24[ci] formatGravatar bholmesdev 11-570/+565
2023-07-24Add "allowHTML" option for Markdoc with HTML parsing/processing (#7597)Gravatar Alex Sherwin 11-28/+752
* 7576 - initial support for HTML inside Markdoc. This uses htmlparser2 to perform a pure token transform/mutation on the markdown-it tokens, replacing the original raw HTML string tokens with a richer set of tokens per HTML node, and in the process Markdoc tags are interleaved in the resulting token graph at the appropriate locations This removes the legacy config of the @astrojs/markdoc integration entirely (suggested by @bholmesdev) and introduces a new type for options to be specified in the astro config, initially, with just the new "enableHTML" option When "enableHTML" is *not* enabled (the default), the behavior of the entire @astrojs/markdoc integration should remain functionally equivalent to before this change * 7576 - fixed issues with whitespace preservation also: * cleaned up " to ' for astro project preferred linting * made the html rendering test fixture use a dynamic path * 7576 - detailed nested HTML test coverage * 7576 - component + HTML interleaved tests * 7576 - fix lint problems from previous changes * 7576 - some commentary * 7576 - file naming, refactor html under imports, package.json exports definition for html * 7576 * move out of extensions dir, remove export * cdata handling changes * 7576 * inline license from third party code * cleanup test class copy of HTML output * remove // third party indicators for imports (clarification: not third party code, just a indicator this group of imports is third party) * 7576 - fixed test before/after for DRY'ness * 7576 - no need to React-ify HTML attribute case * 7576 - rename "enableHTML" option to "allowHTML" * Added Markdoc allowHTML feature changeset * 7576 - updated README with allowHTML info * 7576 - fixed changeset typo * 7576 - minor edits based on PR feedback for docs * 7576 - minor edits based on PR feedback for docs
2023-07-20Fix organize-imports-cli with satisfies operator (#7727)Gravatar Bjorn Lu 2-2/+2
2023-07-18[ci] formatGravatar Princesseuh 1-1/+1
2023-07-18Fix/markdoc assets (#7706)Gravatar Erika 1-3/+3
2023-07-07Fix: Hyphens breaking Markdoc tags (#7599)Gravatar Ben Holmes 1-3/+10
* fix: handle hyphens in tag names * test: add hyphen in test suite * chore: changeset
2023-07-07Fix: Markdoc v0.4.0 docs (#7593)Gravatar Ben Holmes 1-1/+1
* docs: add docs link to markdoc error * docs: add named exports guide to README * chore: changeset * edit: no like so Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * edit: exposed as named exports Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> --------- Co-authored-by: bholmesdev <bholmesdev@gmail.com> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-07-03feat: use typescript-eslint@v6's reworked configs (#7425)Gravatar Josh Goldberg ✨ 5-10/+2
2023-06-27fix: ts-expect-error (#7505)Gravatar Ben Holmes 1-0/+1
2023-06-27[ci] formatGravatar bholmesdev 4-16/+12
2023-06-27feat: New Markdoc `render` API (#7468)Gravatar Ben Holmes 6-293/+411
* feat: URL support for markdoc tags * refactor: move to separate file * feat: support URL for markdoc nodes * feat: support `extends` with URL * chore: changeset * fix: bad AstroMarkdocConfig type * fix: experimentalAssetsConfig missing * fix: correctly merge runtime config * chore: formatting * deps: astro internal helpers * feat: component() util, new astro bundling * chore: remove now unused code * todo: missing hint * fix: import.meta.url type error * wip: test nested collection calls * feat: resolve paths from project root * refactor: move getHeadings() to runtime module * fix: broken collectHeadings * test: update fixture configs * chore: remove suggestions. Out of scope! * fix: throw outside esbuild * refactor: shuffle imports around * Revert "wip: test nested collection calls" This reverts commit 9354b3cf9222fd65b974b0cddf4e7a95ab3cd2b2. * chore: revert back to mjs config * chore: add jsdocs to stringified helpers * fix: restore updated changeset --------- Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2023-06-27feat: restart server on markdoc config change (#7467)Gravatar Ben Holmes 2-19/+15
* deps: vite-plugin-restart * feat: restart on markdoc config change * chore: changeset * chore: roll our own restarter! * deps: remove vite-plugin-restart * refactor: use good enough option
2023-06-26fix(errors): Deprecate error codes (#7347)Gravatar Erika 1-14/+1
Co-authored-by: bluwy <bjornlu.dev@gmail.com>