summaryrefslogtreecommitdiff
path: root/packages/markdown-support/src/codeblock.ts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-09-07Fix parsing of an empty literal `<pre></pre>` in markdown source (#1332)Gravatar Caleb Jasik 1-0/+1
2021-08-25Upgrade unified deps and improve unified plugins types (#1200)Gravatar Robin Métral 1-29/+29
* 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-12Fix left curly bracket formatting (#1094)Gravatar Jonathan Neal 1-1/+1
* Fix curly braces * Add tests * chore: formatting * sstyle: update fix to be more explicit and ireduce chance of false positive * style: use suggestions Co-authored-by: mmarkelov <maks-markel@mail.ru>
2021-06-04Use npm package names to load internal deps (#294)Gravatar Matthew Phillips 1-0/+43
* 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