summaryrefslogtreecommitdiff
path: root/examples/with-markdown-plugins/add-classes.mjs (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2022-08-06[ci] formatGravatar FredKSchott 1-0/+1
2022-08-05add charset utf-8Gravatar Kevin Zuniga Cuellar 6-5/+21
2022-08-06[ci] formatGravatar FredKSchott 59-185/+216
2022-08-05Add `prettier-plugin-astro` to the monorepo (#4083)Gravatar Erika 4-10/+84
* Add `prettier-plugin-astro` to the monorepo * Fix issue that prevent formatting Picture component * Revert "Fix issue that prevent formatting Picture component" This reverts commit 5536c5122ca01c64e2be6bdbc88aaaa71a690a58. * Add back CLI parameter * Update to latest prettier plugin * Add more ignored files, unfortunately
2022-08-05update example scripts (#4098)Gravatar Fred K. Schott 34-77/+121
2022-08-05Add a TypeScript step to `create-astro` (#4179)Gravatar Erika 5-1/+125
* Add a TypeScript step to create-astro * Add changeset * fred pass Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-08-05[MDX] Prevent overriding `collect-headings` plugin (#4181)Gravatar Ben Holmes 4-30/+14
* fix: make rehypeCollectHeadings a required plugin * docs: update README on rehypePlugins * test: remove collect-headings override test * docs: remove extends from rehype docs * chore: changeset
2022-08-05fix: export all of @astrojs/image dist (#4146)Gravatar Corbin Crutchley 2-1/+6
* fix: export all of @astrojs/image dist * chore: add changeset Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05[ci] formatGravatar natemoo-re 5-10/+17
2022-08-05Fix external astro image usage (#4147)Gravatar Corbin Crutchley 2-1/+7
* fix: enable @astrojs/image to be used inside of non-vite contexts * chore: add changeset Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05Frontmatter injection for MD and MDX (#4176)Gravatar Ben Holmes 32-71/+491
* 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-05feat(image): Add GIF -> WEBP support (#4139) (#4140)Gravatar Jack Merrill 2-1/+6
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05[ci] formatGravatar natemoo-re 1-3/+5
2022-08-05Support Fragment in MDX files (#4136)Gravatar Nate Moore 2-1/+11
* fix: Fragment for MDX files * Update core.ts * fix: better type guard for `render` Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05Fix [Object object] in MDX output (#4180)Gravatar Nate Moore 2-1/+6
* fix: use stringifyChunk in `renderToString` fn * chore: add changeset Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05Move types to a .d.ts file inside examples projects (#4171)Gravatar Erika 45-46/+68
* Move types to a .d.ts file to avoid making types explicit * Rename to proper types * Move to proper place * Add noEmit to tsconfig.json * Add back removed code by accident
2022-08-05Update compiler version (#4175)Gravatar Matthew Phillips 4-6/+11
* Update compiler version * Adds a changesetp * Update lockfile * Skip old non-html5 doctype test * update compiler to 0.23.1
2022-08-05Update turbo scripts (#4177)Gravatar Nate Moore 1-7/+7
* chore: update turbo scripts * fix: typo Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05[ci] formatGravatar matthewp 1-1/+3
2022-08-05Add test for mdx + React usage (#4174)Gravatar Matthew Phillips 8-4/+74
* Add test for mdx + React usage * Add a changeset Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05[ci] formatGravatar tony-sull 1-1/+1
2022-08-05Fixes local image resolution in SSR builds on Windows (#4173)Gravatar Tony Sullivan 5-11/+15
* fixing SSR local file resolution path on windows * chore: add changeset * nit: fixing typo in image README file Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05[ci] formatGravatar natemoo-re 1-4/+1
2022-08-05update test coverage to include more Node and Windows tests (#4144)Gravatar Fred K. Schott 3-27/+33
* update node test coverage to include v18, more windows tests * chore(ci): update turbo to account for OS and NODE_VERSION * chore: disable node@18, add TODO Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05[ci] formatGravatar FredKSchott 1-1/+3
2022-08-05do not resolve renderer.serverEntrypoint url before loading it (#4143)Gravatar Fred K. Schott 1-7/+1
2022-08-05[ci] formatGravatar bholmesdev 3-12/+8
2022-08-05[markdown] Harder, better, faster, stronger `vite-plugin-markdown` (#4137)Gravatar Ben Holmes 63-494/+835
* 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 natemoo-re 2-14/+14
2022-08-05Add `getViteConfig` helper (#4154)Gravatar Nate Moore 18-4/+248
* feat: add astro/compat entrypoint for vitest * chore: add with-vitest example * chore: add vitest as optional peer dependency * chore: update lockfile * refactor: remove astro/compat, use astro/config * feat: allow arbitrary modes for `create-vite` * feat: pass vite mode and command when using `getViteConfig` * chore: remove vitest from peer deps * chore: add changeset * chore: update lockfile Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05[ci] update lockfile (#4148)Gravatar Fred K. Bot 1-78/+78
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-08-05[ci] formatGravatar natemoo-re 1-1/+1
2022-08-05Fix duplicate CSS in `dev` mode (#4157)Gravatar Nate Moore 7-29/+49
* fix(hmr): remove SSR styles once HMR styles are injected * refactor: remove data-astro-injected tag * chore: add changeset Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05[ci] formatGravatar natemoo-re 1-3/+3
2022-08-05fix: hide error overlay tip, log [astro] instead of [vite] (#4162)Gravatar Nate Moore 2-1/+9
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05Handle edge case in jsx-runtime (#4158)Gravatar Nate Moore 8-2/+66
* fix(#4135): handle edge case in jsx-runtime * test: add mdx test case * chore: fix utils reference * test: fix mdx escape test Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05[ci] formatGravatar hippotastic 2-8/+5
2022-08-05Fix double-escaping of non-highlighted code blocks in Astro-flavored ↵Gravatar hippotastic 3-6/+26
markdown (#4169)
2022-08-05[ci] formatGravatar matthewp 4-10/+9
2022-08-05Include CSS when child component uses Astro.glob on page (#4156)Gravatar Matthew Phillips 12-53/+131
* Include CSS when child component uses Astro.glob on page * windows compat * Make work on windows * Remove unnecessary concat
2022-08-04fix missing newline bug in mdx (#4145)Gravatar Fred K. Schott 3-1/+9
2022-08-04improve an error message for getstaticpaths (#4153)Gravatar Fred K. Schott 4-27/+46
2022-08-04[ci] formatGravatar natemoo-re 1-1/+1
2022-08-04Add `vite.build.cssTarget` support for CSS build (#4155)Gravatar kagankan 8-0/+91
* Add `vite.build.cssTarget` support for CSS build * chore: update lockfile Co-authored-by: Nate Moore <nate@astro.build>
2022-08-04[ci] formatGravatar Princesseuh 2-2/+8
2022-08-04Audit examples templates (#3940)Gravatar Erika 130-1720/+273
* basics, framework-alpine, framework-solid, delete unused examples * framework-multiple * Remove non-standard file extensions, add missing .vscode folders * Remove robots.txt * Remove blog-multiple-authors * Rewrite components comments to be consistent * Update lockfile * Remove unnecessary usage of SCSS in subpath example * Fix props weirdness in portfolio example * Remove Lit from `framework-multiple` for now * Misc fixes * Update lockfile * I'm in lockfile hell, send help
2022-08-04[ci] release (#4152)astro@1.0.0-rc.6Gravatar Fred K. Bot 32-62/+63
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-04[ci] formatGravatar matthewp 1-11/+15
2022-08-04Order server CSS the same as static (#4149)Gravatar Matthew Phillips 9-2/+114
* Order server CSS the same as static * Adds a changeset
2022-08-03[ci] release (#4133)astro@1.0.0-rc.5@astrojs/mdx@0.6.0@astrojs/image@0.3.1Gravatar Fred K. Bot 41-92/+87
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>