summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-11-27Merge branch 'main' into nextGravatar Emanuele Stoppa 1-1/+1
2024-11-27fix(deps): update all non-major dependencies (#12410)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-11-15feat: experimental responsive images (#12377)Gravatar Matt Kane 2-8/+8
* chore: changeset * feat: add experimental responsive images config option (#12378) * feat: add experimental responsive images config option * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update config types * Move config into `images` * Move jsdocs --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * feat: add responsive image component (#12381) * feat: add experimental responsive images config option * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update config types * Move config into `images` * Move jsdocs * wip: responsive image component * Improve srcset logic * Improve fixture * Lock * Update styling * Fix style prop handling * Update test (there's an extra style for images now) * Safely access the src props * Remove unused export * Handle priority images * Consolidate styles * Update tests * Comment * Refactor srcset * Avoid dupes of original image * Calculate missing dimensions * Bugfixes * Add tests * Fix test * Correct order * Lint * Fix fspath * Update test * Fix test * Conditional component per flag * Fix class concatenation * Remove logger * Rename helper * Add comments * Format * Fix markdoc tests * Add test for style tag --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * feat: add crop support to image services (#12414) * wip: add crop support to image services * Add tests * Strip crop attributes * Don't upscale * Format * Get build working properly * Changes from review * Fix jsdoc * feat: add responsive support to picture component (#12423) * feat: add responsive support to picture component * Add picture tests * Fix test * Implement own define vars * Share logic * Prevent extra astro-* class * Use dataset scoping * Revert unit test * Revert "Fix test" This reverts commit f9ec6e2938ff291037234d56f8eec76a93be0c0d. * Changes from review * docs: add docs for responsive images (#12429) * docs: add responsive images flag docs * docs: adds jsdoc for image components * chore: updates from review * Fix jsdoc * Changes from review * Add breakpoints option * typo --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-15Merge branch 'main' into nextGravatar bluwy 1-1/+1
2024-10-15fix(deps): update all non-major dependencies (#12218)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-10-07Merge branch 'main' into nextGravatar Princesseuh 1-1/+1
2024-10-07fix(deps): update all non-major dependencies (#12140)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-04Implement legacy collections using glob (#11976)Gravatar Matt Kane 14-2/+104
* feat: support pattern arrays with glob * wip * feat: emulate legacy content collections * Fixes * Lint * Correctly handle legacy data * Fix tests * Switch flag handling * Fix warnings * Add layout warning * Update fixtures * More tests! * Handle empty md files * Lockfile * Dedupe name * Handle data ID unslug * Fix e2e * Clean build * Clean builds in tests * Test fixes * Fix test * Fix typegen * Fix tests * Fixture updates * Test updates * Update changeset * Test * Remove wait in test * Handle race condition * Lock * chore: changes from review * Handle folders without config * lint * Fix test * Update wording for auto-collections * Delete legacyId * Sort another fixture * Rename flag to `legacy.collections` * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Changes from review * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * lockfile * lock --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-01Merge branch 'main' into nextGravatar bluwy 1-1/+1
2024-09-26Parse frontmatter ourselves (#12075)Gravatar Bjorn Lu 1-3/+3
2024-09-26fix(deps): update all non-major dependencies (#12003)feat/action-on-resultGravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-09-11feat(next): reference astro/client from astro/config (#11925)Gravatar Florian Lefebvre 2-2/+2
2024-09-03feat(next): better tsconfig (#11859)Gravatar Florian Lefebvre 2-2/+6
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-08-27fix(markdoc): use astro components defined with `extends` (#11846)Gravatar HiDeoo 8-0/+160
2024-08-19fix(deps): update all non-major dependencies (#11765)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-08update formatter config (#11640)Gravatar Darius 4-7/+7
* update formatter config * format --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-07-31fix(deps): update all non-major dependencies (#11565)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-17[ci] formatGravatar Fugi 1-1/+1
2024-07-17feat(markdoc): Support markdown-it's typographer option (#11450)Gravatar Peter Schilling 5-0/+64
* 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-07-01fix(deps): update all non-major dependencies (#11383)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-30fix(deps): update all non-major dependencies (#11151)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-09chore(deps): update all non-major dependencies (#10958)Gravatar renovate[bot] 1-1/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-01Fix typos (#10923)Gravatar Viktor Szépe 1-1/+1
2024-04-17[ci] formatGravatar Emanuele Stoppa 6-6/+6
2024-04-03[ci] formatGravatar Ben Holmes 3-3/+3
2024-04-03feat: automatic Markdoc partial resolution (#10649)Gravatar Ben Holmes 23-70/+313
* 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-4/+4
2024-03-13Revert "[ci] format" (#10417)Gravatar Emanuele Stoppa 6-6/+6
* Revert "[ci] format" This reverts commit 1863727215e87e20c6f5aebe5f9ee0f2783bc788. * pin dependency * update lock
2024-03-13[ci] formatGravatar Houston (Bot) 6-6/+6
2024-02-22chore: import sorting for test folder and e2e folder (#10190)Gravatar Emanuele Stoppa 19-19/+19
2024-02-21chore: use biome to sort imports - only test files (#10180)Gravatar Emanuele Stoppa 8-20/+20
* chore: use biome to sort imports * do the sorting * Update package.json Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-02-08feat(markdoc): Add support for using a custom component for images (#9958)Gravatar Erika 4-0/+48
* 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-01-31chore(@astrojs/markdoc): use Node.js for testing (#9897)Gravatar ktym4a 8-178/+180
2024-01-25Fix: update doc links (#9804)Gravatar Jacob Lamb 2-2/+2
* Fix: update doc links * More links * Remove docs line
2023-11-27Remove support for simple objects in endpoints (#9181)Gravatar Bjorn Lu 2-6/+2
* Deprecate simple object from endpoints * Update changeset * Add missing Response return Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com> * Update .changeset/clever-beds-notice.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-28Remove deprecated features from Astro 3.0 (#9168)Gravatar Bjorn Lu 2-2/+2
2023-10-27Fix: Markdoc Integration build when root folder contains spaces (#8759)Gravatar Luca Di Gianventura 5-0/+74
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-10-24[ci] formatGravatar ematipico 1-1/+0
2023-10-24feat(markdoc): allowIndentation integration option (#8802)Gravatar AndyClifford 8-0/+140
2023-10-12Use shikiji (#8502)Gravatar Bjorn Lu 1-3/+0
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-22nit: optimize images (#8629)Gravatar Erika 2-0/+0
2023-08-23Update non-major dependencies (#8199)Gravatar Bjorn Lu 1-1/+1
2023-08-18Switch `build.inlineStylesheets` default to auto (#8118)Gravatar Arsh 1-0/+2
* switch inlineStylesheets default * use previous default for astro/test * use previous default for content-collections-render.test.js * integrations: node, deno, mdx, markdown * typedocs: switch inlineStylesheets default * Update example to show non-default * add changeset * reword changeset --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-17config: remove ~/assets alias (#8113)Gravatar Erika 1-0/+9
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Mia Kanashi <chad@redpilled.dev>
2023-08-16feat: unflag experimental.assets (#7921)Gravatar Erika 1-4/+1
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-07-24[ci] formatGravatar bholmesdev 1-231/+225
2023-07-24Add "allowHTML" option for Markdoc with HTML parsing/processing (#7597)Gravatar Alex Sherwin 11-0/+580
* 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-14nit: export props has been unnecessary.. forever (#7646)Gravatar Erika 1-1/+1
2023-07-07Fix: Hyphens breaking Markdoc tags (#7599)Gravatar Ben Holmes 2-3/+3
* fix: handle hyphens in tag names * test: add hyphen in test suite * chore: changeset
2023-06-27feat: New Markdoc `render` API (#7468)Gravatar Ben Holmes 3-13/+8
* 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>