summaryrefslogtreecommitdiff
path: root/packages/markdown-support/src/index.ts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-08-25Upgrade unified deps and improve unified plugins types (#1200)Gravatar Robin Métral 1-4/+4
* Upgrade @astrojs/markdown-support deps and update types * Add changeset * Update changeset * Switch astro-markdown-plugins example to use rehype-autolink-headings Usage of remark-autolink-headings is discouraged in favor of the rehype counterpart: https://github.com/remarkjs/remark-autolink-headings\#remark-autolink-headings * Add stricter types for unified plugins This includes a few suggestions from a code review: - use vfile.toString instead of vfile.value.toString - refactor plugins to follow unified best practices instead of returning functions that return a plugin - use any instead of any[] for plugin options types * Narrow down types to more specific hast or mdast typings
2021-08-11Fixes #1033 - Markdown with applied scopedStyles doesn't run Prism syntax ↵Gravatar Barrabin ⚑ 1-1/+2
highlight (#1037) * Fixes #1033 - Markdown with applied scopedStyles doesn't run Prism syntax highlight * Removed the incorrect lang attribute to indicate language syntax * Fixed UT for scopedStyles + markdown * Update packages/astro/test/astro-markdown.test.js Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz> * Added changeset for PR #1037 * Update curly-queens-pay.md Changing from a `minor` release to a `patch` since we're pre-v1.0.0! This Co-authored-by: Vitor Calejuri <vitor.cajuleri@gmail.com> Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-07-28Add remark-slug (#862)Gravatar Maksim Markelov 1-0/+2
* Add remark-slug * Add remark-slug in documentation * Add changeset
2021-07-07[ci] yarn formatGravatar natemoo-re 1-2/+9
2021-07-01Expose `content.astro.html` to `Astro.fetchContent` (#583)Gravatar Nate Moore 1-1/+1
* feat: expose `content.astro.html` to Astro.fetchContent * docs: add `astro.html` note to docs
2021-07-01Remark and rehype plugins (#562)Gravatar Pavel Mineev 1-28/+33
* remark plugins * remove unused dependency * enable codeblocks * backward compatibility with remark-code-titles * add support for rehype plugins * add proper types for plugins * fixes after review - connect plugins by name - make plugins configurable - connect gfm and footnotes if no plugins provided from config - add more plugins to example * update and rename example * add documentation for markdown plugins * chore: rename with-markdown-plugins example * chore: restructure dependencies * feat: add back smartypants, fix mdx expressions * chore: remove log * test: add markdown plugin tests * chore: add changeset * docs: update markdown doc Co-authored-by: Nate Moore <nate@skypack.dev>
2021-06-04[ci] yarn formatGravatar matthewp 1-1/+1
2021-06-04Use npm package names to load internal deps (#294)Gravatar Matthew Phillips 1-0/+69
* Use npm package names to load internal deps This is necessary so that published Astro components work. These components will be built by esinstall and therefore they cannot rely on `_astro_internal`. The fix is to use npm specifiers everywhere. * Move most of frontend to internal * Mark astro/internal/markdown.js as external * Move markdown stuff to its own package This moves the markdown stuff to its own package so that we can externalize it in the markdown component. * Add the changeset