summaryrefslogtreecommitdiff
path: root/packages/markdown (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-08-30[ci] release (#4520)astro@1.1.2@astrojs/react@1.1.1@astrojs/mdx@0.10.3@astrojs/markdown-remark@1.1.1@astrojs/lit@1.0.1@astrojs/image@0.3.7Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-28chore: updated shiki (#4519)Gravatar Juan Martín Seery 2-7/+17
* Upgraded shiki * Use setColorReplacements * no-shadow * Changeset
2022-08-26[ci] release (#4495)create-astro@1.0.1astro@1.1.0@astrojs/solid-js@1.1.0@astrojs/react@1.1.0@astrojs/mdx@0.10.2@astrojs/markdown-remark@1.1.0Gravatar Fred K. Bot 2-1/+9
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-25[ci] release (next) (#4480)create-astro@1.0.1-next.0astro@1.1.0-next.0@astrojs/react@1.1.0-next.0@astrojs/mdx@0.10.2-next.0@astrojs/markdown-remark@1.1.0-next.0Gravatar Fred K. Bot 2-1/+9
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-25[MD] `extendDefaultPlugins` to preserve default remark plugins (#4474)Gravatar Ben Holmes 2-3/+5
* feat: add { extends } to markdown config * test: remark plugins with extends * deps: pnpm lock * chore: changeset * fix: remarkPlugins -> rehypePlugins * docs: update markdown config reference * Revert "feat: add { extends } to markdown config" This reverts commit 5d050bbcf9a2c0d470cae79c4d0a954d489f4e8c. * feat: new "extendDefaultPlugins" flag * docs: update config * nit: We -> Astro applies * fix: backticks on `false` * nit: Note -> REAL note Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * docs: note -> caution Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-25[ci] formatGravatar matthewp 1-2/+2
2022-08-25make Remark rehype options available in astro config (#4138)Gravatar gtnbssn 2-0/+12
* make remark-rehype config available in astro.config.mjs * add test for remark-rehype config, checks that footnotes can be translated * update lockfile to take the added test into account * omit handlers and unkownHandler from the RemarkRehype type * define RemarkRehype with proper references to the handler and handlers types * formatting * changeset Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-08-09[ci] release (#4224)astro@1.0.1@astrojs/markdown-component@1.0.1@astrojs/image@0.3.3Gravatar Fred K. Bot 2-7/+9
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-09Markdown component: fix package name in readme.md (#4208)Gravatar Masataka Yakura 1-1/+1
* Markdown component: fix package name in readme.md readme says it's `@astrojs/markdown`, but package name is actually `@astrojs/markdown-component`. * Create dry-deers-vanish.md * Update dry-deers-vanish.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-08-09Astro 1.0.0 (#4214)Gravatar Nate Moore 4-3/+24
* chore: remove changesets patch * chore: add changesets * chore: version packages * chore: normalize formatting * chore: update lockfile * chore: fix codeblocks * Update packages/astro/CHANGELOG.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/CHANGELOG.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/CHANGELOG.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * chore: fixup code samples * chore: move v0.25 message out of note Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-05[ci] release (#4159)create-astro@0.15.0astro@1.0.0-rc.7@astrojs/react@0.4.3@astrojs/mdx@0.7.0@astrojs/markdown-remark@0.14.1@astrojs/image@0.3.2Gravatar Fred K. Bot 2-1/+11
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-05[ci] formatGravatar natemoo-re 1-1/+1
2022-08-05Frontmatter injection for MD and MDX (#4176)Gravatar Ben Holmes 3-5/+18
* feat: inject vfile data as exports * feat: add vfile to renderMarkdown output * feat: add safe astroExports parser to utils * refactor: expose vite-plugin-utils on astro package * feat: handle astroExports in mdx * deps: vfile * chore: lockfile * test: astroExports in mdx * refactor: merge plugin exports into forntmatter * refactor: astroExports -> astro.frontmatter * refactor: md astroExports -> astro.frontmatter * feat: astro.frontmatter vite-plugin-markdown * chore: remove unused import * fix: inline safelyGetAstroData in MDX integration * chore: check that frontmatter export is valid export name * chore: error log naming * test: mdx remark frontmatter injection * fix: inconsistent shiki mod resolution * fix: add new frontmatter and heading props * test: remark vdata * fix: spread astro.data.frontmatter * test deps: mdast-util-to-string, reading-time * fix: astro-md test package name * test: md frontmatter injection * fix: layouts * deps: remove vite-plugin-utils export * fix: package lock * chore: remove dup import * chore: changeset * chore: add comment on safelyGetAstroData source * deps: move mdast-util-to-string + reading-time to test fixture * chore: move remark plugins to test fixture * fix: override plugin frontmatter with user frontmatter * test: md injected frontmatter overrides * test: frontmatter injection overrides mdx
2022-08-05[markdown] Harder, better, faster, stronger `vite-plugin-markdown` (#4137)Gravatar Ben Holmes 1-1/+1
* refactor: vite-plugin-md -> vite-plugin-md-legacy * wip: add vite-plugin-md * feat: always apply jsx renderer * fix: markHTMLString on VNode result * feat: apply new vite-plugin-markdown! * fix: add meta export to md * fix: remove needless $$metadata export * fix: toggle to legacy plugin on flag * fix: pass fileId to renderMarkdown * test: raw and compiled content on plain md * fix: escape vite env refs * refactor: astro-md -> legacy-astro-flavored-md, astro-md-mode -> astro-markdown * fix: import.meta.env refs with tests * fix: add pkg.json to clientAddress * fix: prefer JSX integration over Astro runtime * Revert "fix: prefer JSX integration over Astro runtime" This reverts commit 3e5fa49344be9c857393da9af095faab152e92e1. * fix: remove .mdx check on importSource * chore: changeset * chore: remove TODO * fix: add back getHeadings * fix: add pkg.json to astro-head fixture * fix: default to Astro renderer for MDX and MD * feat: add "headings" and "frontmatter" to md layouts * refactor: remove legacy flag conditionals from legacy plugin * fix: add back MDX warning when legacy is off * test: getHeadings() glob * fix: add error on "astro.headings" access * feat: update docs example astro.headings => headings * refactor: readFile as string w/ utf-8 * chore: remove astro metadata TODO * refactor: stringify HTML once * fix: add pkg.json to glob-pages-css
2022-08-05[ci] formatGravatar hippotastic 2-8/+5
2022-08-05Fix double-escaping of non-highlighted code blocks in Astro-flavored ↵Gravatar hippotastic 2-6/+21
markdown (#4169)
2022-08-02[ci] release (#4116)astro@1.0.0-rc.4@astrojs/prism@0.7.0@astrojs/mdx@0.5.0@astrojs/markdown-remark@0.14.0Gravatar Fred K. Bot 2-2/+13
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-02Audit dependencies (#4096)Gravatar Erika 1-2/+0
* Remove some unused dependencies * Update lockfile * Add util * Remove util
2022-08-02Refactor @astrojs/prism, fix Prism component import not working (#4114)Gravatar Erika 2-45/+2
* Upgrade @astrojs/prism to a real package, fix component import not working * Remove `@astrojs/prism` as a dependency of `astro` * Update lock file * Refactor to multiple files * Oops, can't have astro imports run inside node * Follow Nate's suggestion on being minors instead of patchs * Update lockfile
2022-07-30[ci] release (#4086)astro@1.0.0-rc.3@astrojs/mdx@0.4.0@astrojs/markdown-component@0.2.1Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-28Fix shape of Markdown component to work with the language-server (#4085)Gravatar Erika 1-0/+2
* Fix shape of Markdown component to work with the language-server * Add changeset
2022-07-26Add tests for markdown content escaping (#4058)Gravatar Matthew Phillips 2-1/+17
2022-07-26[ci] release (#3972)create-astro@0.14.2astro@1.0.0-rc.1@astrojs/vue@0.5.0@astrojs/vercel@0.3.0@astrojs/tailwind@0.2.5@astrojs/svelte@0.5.0@astrojs/sitemap@0.3.0@astrojs/prefetch@0.0.6@astrojs/partytown@0.1.9@astrojs/node@0.2.0@astrojs/netlify@0.5.0@astrojs/mdx@0.3.0@astrojs/markdown-remark@0.13.0@astrojs/markdown-component@0.2.0@astrojs/lit@0.3.2@astrojs/image@0.2.0@astrojs/deno@0.2.0@astrojs/cloudflare@0.3.0Gravatar Fred K. Bot 4-2/+67
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-23Rename Markdown util `getHeaders()` to `getHeadings()` (#4031)Gravatar Nate Moore 3-14/+14
* Renamed getHeaders() to getHeadings(), according to RFC #208. * chore: update changeset * fix: expose MarkdownHeading type from `astro` Co-authored-by: Félix Sanz <me@felixsanz.com> Co-authored-by: Nate Moore <nate@astro.build>
2022-07-22[ci] formatGravatar tony-sull 3-21/+18
2022-07-22Feat: new `legacy.astroFlavoredMarkdown` flag (#4016)Gravatar Ben Holmes 21-140/+162
* 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-21[ci] formatastro@0.0.0-rc-20220722032928@astrojs/vue@0.0.0-rc-20220722032928@astrojs/vercel@0.0.0-rc-20220722032928@astrojs/tailwind@0.0.0-rc-20220722032928@astrojs/svelte@0.0.0-rc-20220722032928@astrojs/sitemap@0.0.0-rc-20220722032928@astrojs/prefetch@0.0.0-rc-20220722032928@astrojs/partytown@0.0.0-rc-20220722032928@astrojs/node@0.0.0-rc-20220722032928@astrojs/netlify@0.0.0-rc-20220722032928@astrojs/mdx@0.0.0-rc-20220722032928@astrojs/markdown-remark@0.0.0-rc-20220722032928@astrojs/markdown-component@0.0.0-rc-20220722032928@astrojs/lit@0.0.0-rc-20220722032928@astrojs/image@0.0.0-rc-20220722032928@astrojs/deno@0.0.0-rc-20220722032928@astrojs/cloudflare@0.0.0-rc-20220722032928Gravatar bholmesdev 1-15/+15
2022-07-21Fix: use `set:html` when markdown mode is `md` (#4008)Gravatar Ben Holmes 1-8/+10
* refactor: add legacy.jsxInMarkdown flag to config * fix: use `set:html` when `markdown.mode` is 'md' * Revert "refactor: add legacy.jsxInMarkdown flag to config" This reverts commit 5572e8d9b33eb1e9168d221f22348d3b3cb4b29a. * fix: move `remarkUnwrap, remarkEscape` to MDX only * fix: only apply scary HTML passthroughs on MDX * fix: move all JSX-specific rehype plugins under `isMDX` * fix: "allowDangerousHtml" for md (required for Shiki) * fix: apply `set:html` for non-layouts too * test: JSX expressions, components, syntax highlighting * chore: changeset * fix: ignore "setup" and "components" in plain MD mode * refactor: create new fixture to avoid weird caching error * fix: dup package name * chore: update lock * fix: apply rehypeCollectHeaders to md
2022-07-20[ci] formatGravatar matthewp 2-5/+6
2022-07-20Move the Markdown component to its own package (#3986)Gravatar Matthew Phillips 84-0/+1608
* Move the Markdown component to its own package * Update the examples * Updated lockfile * Use is:raw * Add a main field * Update the formatting of the readme * Rename to @astrojs/markdown-component
2022-07-19[ci] formatastro@0.0.0-rc-20220719055619@astrojs/vue@0.0.0-rc-20220719055619@astrojs/svelte@0.0.0-rc-20220719055619@astrojs/image@0.0.0-rc-20220719055619Gravatar FredKSchott 1-5/+5
2022-07-18Removes trailing dash from generated slugs in markdown (#3044)Gravatar Rafid Muhymin Wafi 2-2/+6
* 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-18[ci] release (#3939)create-astro@0.14.1astro@1.0.0-beta.73@astrojs/vue@0.4.1@astrojs/telemetry@0.4.1@astrojs/svelte@0.4.1@astrojs/solid-js@0.4.1@astrojs/rss@0.2.2@astrojs/react@0.4.2@astrojs/prism@0.6.1@astrojs/preact@0.5.2@astrojs/mdx@0.2.1@astrojs/markdown-remark@0.12.0@astrojs/image@0.1.3v1-betaGravatar Fred K. Bot 2-2/+13
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-18ci: fix eslint issues (#3969)Gravatar Juan Martín Seery 1-0/+1
2022-07-18Revert "Removes trailing dash from generated slugs in markdown (#3044)"Gravatar Fred K. Schott 2-6/+2
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-18remove ssr-utils file (#3924)Gravatar Fred K. Schott 2-10/+1
2022-07-16[ci] formatGravatar RafidMuhymin 1-5/+5
2022-07-16Removes trailing dash from generated slugs in markdown (#3044)Gravatar Rafid Muhymin Wafi 2-2/+6
* 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-14[ci] release (#3921)astro@1.0.0-beta.71@astrojs/markdown-remark@0.11.7Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-14[ci] formatGravatar FredKSchott 1-1/+1
2022-07-14add back missing ssr-utils.ts file (#3919)Gravatar Fred K. Schott 2-1/+10
2022-07-13[ci] release (#3903)create-astro@0.14.0astro@1.0.0-beta.70@astrojs/vue@0.4.0@astrojs/telemetry@0.4.0@astrojs/svelte@0.4.0@astrojs/solid-js@0.4.0@astrojs/rss@0.2.1@astrojs/react@0.4.0@astrojs/prism@0.6.0@astrojs/preact@0.5.0@astrojs/mdx@0.2.0@astrojs/markdown-remark@0.11.6Gravatar Fred K. Bot 2-2/+11
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-13fix: don't throw when Shiki doesn't recognize a language (#3911)Gravatar Juan Martín Seery 1-1/+15
* Don't throw when Shiki doesn't recognise a language * Changeset
2022-07-12[ci] release (#3894)Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-11Fix: reintroduce smoke tests across example projects (#3669)Gravatar Nate Moore 2-10/+1
* chore: update smoke tests * chore: bump smoke tests to node@16 * chore: remove gitmodules * chore(ci): prefer node@14 * wip: remove path from smoke clone step * feat: run build:examples from test:smoke * fix: remove no-frozen-lockfile * fix: checkout monorepo last for pnpm setup * wip: replace @astrojs/markdown/remark import from md * fix: remove type defs from generated file * fix: function order * chore: remove ssr-utils export * wip: remove windows from smoke test * fix: instantiate slugger in snippet * fix: exclude with-mdx from smoke (for now) * fix: add quotes on filter flag for safety * chore: changeset * wip: try reintroducing windows smoke * sad chore: remove client: directive from with-mdx * Revert "wip: try reintroducing windows smoke" This reverts commit 9529b1a45c007286c22861e106b82200545e4198. Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-07-11[ci] release (#3887)create-astro@0.13.0astro@1.0.0-beta.66@astrojs/vue@0.3.0@astrojs/telemetry@0.3.0@astrojs/svelte@0.3.0@astrojs/solid-js@0.3.0@astrojs/react@0.3.0@astrojs/prism@0.5.0@astrojs/preact@0.4.0@astrojs/mdx@0.1.0@astrojs/markdown-remark@0.11.4Gravatar Fred K. Bot 2-2/+9
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28[ci] update lockfile (#3740)Gravatar Fred K. Bot 1-1/+1
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-22Enables eslint on the full repo and adds a rule for no `only()` tests (#3659)Gravatar Tony Sullivan 3-8/+10
* enabling eslint on the all packages and tests * enabling for all packages * TEMP: adding an only() test to verify it fails CI * using our eslint config and ignore in CI * removing the temporary .only() test * update lock file * lint: fixing new test with a no-shadow warning * chore: update lock file