summaryrefslogtreecommitdiff
path: root/packages/markdown/remark/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-10-10Merge branch 'main' into nextGravatar bluwy 2-1/+29
2024-10-09feat(markdown): add support for `shiki` option `langAlias` (#12039)Gravatar Emanuele Stoppa 1-0/+28
* feat(shiki): add support for `langAlias` * chore: apply feedback * Update packages/markdown/remark/src/types.ts Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * fix build * Fix bug * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/dirty-socks-sip.md --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
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-02Clean up Astro metadata in vfile.data (#11861)Gravatar Bjorn Lu 1-2/+2
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-09-02Refactor createShikiHighlighter (#11825)Gravatar Bjorn Lu 1-8/+16
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-08update formatter config (#11640)Gravatar Darius 3-6/+6
* update formatter config * format --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-07-17Feature: add support for shiki `defaultColors` option (#11341)Gravatar Marco Campos 1-0/+16
* feat: add shiki option for default color * feat: propagate shiki option for default color to astro config * feat: add tests for default color * chore: add change set * fix: add complete type to shiki default color config * fix: remove unneeded heavy shiki theme from fixture * fix: add literals to schema validation Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * Update .changeset/cold-crabs-arrive.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * feat: improve changeset * grammar tweak --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-04-01Lazy loaded shiki languages during syntax highlighting (#10618)Gravatar James Garbutt 1-4/+4
2024-03-20Pass meta to shiki transformers (#10494)Gravatar Bjorn Lu 1-0/+32
2024-03-08Move to shiki and stabilize dual themes support (#10130)Gravatar Bjorn Lu 1-1/+1
* Update to shiki * Stabilize shikiConfig.experimentalThemes * Add changeset * Fix merge issues
2024-02-21chore: use biome to sort imports - only test files (#10180)Gravatar Emanuele Stoppa 5-5/+5
* 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-16chore: Change `strictEqual` to `equal` (#10140)Gravatar ktym4a 1-2/+2
2024-02-12chore: Migrate All `packages/markdown/remark/tests` to node:test (#10083)Gravatar Shoaib Khan 6-74/+95
* chore: Migrate All packages/markdown/remark/tests to node:test * Some minor fixes
2024-01-20Make `@astrojs/markdown-remark` browser-safe (#9738)Gravatar Bjorn Lu 1-0/+15
2024-01-17[ci] formatGravatar Oliver Speir 1-23/+29
2024-01-17Allow remark plugins to affect getImage call for .md files (#9566)Gravatar Oliver Speir 1-23/+23
* pass hProperties to getImage for optimized imgs * fix to allow multiple images to have hProps added * update test to reflect new expected result * add comment back in Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> * add srcset * works on multiple images * fix tests, fix images.ts type and remove console logs * add warning back to images.ts again lol * update changeset to be user oriented * Update calm-socks-shake.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * pass alt through getImage * added fixture and test * update lockfile * fix lockfile again (had installed an extra package during testing and had sharp33 installed) * update test to reflect passing alt through getImage --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-14Refactor shikiji syntax highlighting code (#9083)Gravatar Bjorn Lu 1-1/+24
2023-11-08Light/dark theming for shikiji's codeblocks (#8903)Gravatar horo 1-3/+21
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-04[ci] formatGravatar bluwy 1-7/+3
2023-10-04Fixes: Shiki syntax highlighting adds is:raw attribute to the HTML output ↵Gravatar Chris 1-0/+16
(#8715) Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-09-14Improve markdown rendering performance (#8532)Gravatar Bjorn Lu 5-43/+38
2023-09-13feat(markdown): Add support for `imageReference` paths when collecting ↵Gravatar Lars Kappert 2-0/+29
images (#8475)
2023-01-11[Content collections] Remove experimental flag (#5825)Gravatar Ben Holmes 4-4/+20
* refactor: remove experimental.cc from core * chore: remove experimental flag from tests * fix: mock contentDir in remark tests * fix: check vfile.path in rel-image-error plugin * fix: move .astro/ excludes to all test/fixtures * fix: include test/**/fixtures in ignore * chore: changeset
2023-01-09Remove Astro-flavored Markdown from `@astrojs/markdown-remark` (#5785)Gravatar Chris Swithinbank 5-387/+1
2022-08-05[ci] formatGravatar hippotastic 1-7/+4
2022-08-05Fix double-escaping of non-highlighted code blocks in Astro-flavored ↵Gravatar hippotastic 1-4/+18
markdown (#4169)
2022-07-26Add tests for markdown content escaping (#4058)Gravatar Matthew Phillips 1-0/+12
2022-07-22[ci] formatGravatar tony-sull 2-20/+17
2022-07-22Feat: new `legacy.astroFlavoredMarkdown` flag (#4016)Gravatar Ben Holmes 4-117/+139
* refactor: add legacy.jsxInMarkdown flag to config * refactor: jsxInMarkdown -> astroFlavoredMarkdown * refactor: remove `markdown.mode` * feat: wire up legacy.astroFlavoredMarkdown * test: add legacy to astro-markdown fixture * test: remark autolinking * test: remark components * test: remark expressions * test: remark strictness * chore: remove "mode" from md component * chore: remove "mode: md" from tests * Fixing legacy MD tests, adding named slots tests for MDX pages * chore: update lock file * WIP: debugging named slots in MDX * fix: handle named slots in MDX properly * chore: re-enabling slots tests for MDX pages * fixing test validation for svelte & vue * removing unused Tailwind test * legacy flag for Markdown component tests * adding is:raw to Markdown component test * adding is:raw to all Markdown component test fixtures * can't use is:raw when nesting markdown components * another nested test can't use is:raw * one more <Markdown> test fix * fixing another JSX markdown component test * chore: add changeset * e2e tests were missing the legacy flag * removing the broken tailwind E2E markdown page Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com> Co-authored-by: Nate Moore <nate@astro.build>
2022-07-18Removes trailing dash from generated slugs in markdown (#3044)Gravatar Rafid Muhymin Wafi 1-1/+1
* fixed header slugs in markdown if ends with a dash * added changeset * removes trailing dash only if slug was created * updated test * updated change level from patch to minor
2022-07-18Revert "Removes trailing dash from generated slugs in markdown (#3044)"Gravatar Fred K. Schott 1-1/+1
This reverts commit 8530cce14f9953e0e5d6b12807720e62b9b5cf1f.
2022-07-18Revert "Revert "Removes trailing dash from generated slugs in markdown (#3044)""Gravatar Fred K. Schott 1-1/+1
This reverts commit 7160bbeedead315a796cdb8b601a5859d5c3f4d7.
2022-07-18Revert "Removes trailing dash from generated slugs in markdown (#3044)"Gravatar Fred K. Schott 1-1/+1
This reverts commit 8530cce14f9953e0e5d6b12807720e62b9b5cf1f.
2022-07-16Removes trailing dash from generated slugs in markdown (#3044)Gravatar Rafid Muhymin Wafi 1-1/+1
* fixed header slugs in markdown if ends with a dash * added changeset * removes trailing dash only if slug was created * updated test * updated change level from patch to minor
2022-06-20[ci] formatGravatar tony-sull 1-7/+3
2022-06-20Encode ampersands in markdown code blocks (#3630)Gravatar Tony Sullivan 1-1/+28
* encode ampersands in markdown code blocks * chore: add changeset * nit: fixing test case description
2022-06-20[ci] formatGravatar tony-sull 1-4/+2
2022-06-20Fixes rendering of HTML comments inside markdown code blocks (#3638)Gravatar Tony Sullivan 1-0/+20
* JS comment wrappers should be removed from HTML comments in code blocks * chore: add changeset
2022-06-17Remove extra newlines around Markdown components (#3620)Gravatar hippotastic 2-4/+4
2022-06-10[ci] formatGravatar natemoo-re 1-17/+13
2022-06-09Fix autolinking of URLs inside links in Markdown (#3564)Gravatar hippotastic 1-0/+96
2022-06-08[ci] formatGravatar natemoo-re 1-58/+17
2022-06-08Allow AlpineJS syntax extensions in Markdown (#3554)Gravatar hippotastic 1-0/+122
* Allow AlpineJS syntax extensions in Markdown * Remove unwanted MDX ESM import/export support
2022-06-03[ci] formatGravatar natemoo-re 1-4/+6
2022-06-03Fix: Allow self-closing tags in Markdown (#3516)Gravatar hippotastic 1-0/+16
2022-06-03Fix cases for JSX-like expressions in code blocks of headings (#3502)Gravatar nokazn 1-1/+32
* chore: fix typo in remark tests * test: add test cases for markdown expressions in header * fix: avoid evaluating JSX-like expressions inside inline code in heading * fix: generate slug for id including values in backtick blocks
2022-05-31[ci] formatGravatar natemoo-re 1-8/+2
2022-05-31Fix components in markdown regressions (#3486)Gravatar hippotastic 2-3/+14
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-05-24[ci] formatGravatar natemoo-re 3-13/+33
2022-05-24Improve Markdown + Components usage (#3410)Gravatar Nate Moore 3-0/+128
* feat: use internal MDX tooling for markdown + components * fix: improve MD + component tests * chore: add changeset * fix: make tsc happy * fix(#3319): add regression test for component children * fix(markdown): support HTML comments in markdown * fix(#2474): ensure namespaced components are properly handled in markdown pages * fix(#3220): ensure html in markdown pages does not have extra surrounding space * fix(#3264): ensure that remark files pass in file information * fix(#3254): enable experimentalStaticExtraction for `.md` pages * fix: revert parsing change * fix: remove `markdown.mode` option