bholmesdev
|
c86f0c6e3e
|
[ci] format
|
2023-05-31 23:21:07 +00:00 |
|
Ben Holmes
|
339529fc82
|
Markdoc asset bleed, second try (#7185)
* Revert "revert: markdoc asset bleed (#7178)"
This reverts commit 57e65d247f .
* fix: missing result param on `renderUniqueStylesheet`
* test: bundled styles (fails!)
* fix: use `type: 'external'` for links
* fix: split Astro components from markdoc config
* test: style bleed (it fails...)
* chore: remove unused util
* fix: revert entry change
* Stop traversing the graph when you encounter a propagated asset
* chore: cleanup unused `entry` prop
* refactor: add isPropagatedAssetsMod check
* chore: remove unused import
* chore: changeset
* Normalize path using vite
* Update packages/integrations/markdoc/src/index.ts
Co-authored-by: Ben Holmes <hey@bholmes.dev>
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
|
2023-05-31 19:18:07 -04:00 |
|
Ben Holmes
|
bef3a75dbc
|
Markdoc - remove $entry variable (#7244)
* refactor: remove entry prop from `getRenderModule()`
* refactor: remove `$entry` from markdoc
* test: update entry-prop -> variables test
* refactor: unify `getEntryConfigByExt`
* chore: clean up shared content / data get logic
* docs: update `$entry` recommendation
* chore: rename entry-prop -> variables
* chore: changeset
* chore: missed a spot
|
2023-05-30 16:18:20 -04:00 |
|
bholmesdev
|
594a3aaf51
|
[ci] format
|
2023-05-25 15:37:55 +00:00 |
|
Ben Holmes
|
16b8364119
|
Markdoc - improve syntax highlighting support (#7209)
* feat: prism and shiki support, with better exports!
* chore: update tests
* chore: fix lock
* chore: add prism test
* chore: remove `async` from prism
* docs: update syntax highlight readme
* chore: changeset
* edit: remove `await` from prism docs
* chore: update old changest with new shiki instructions
* fix: add trailing newline on ts-expect-error
* refactor: resolve promises internally
* docs: remove `await` from shiki examples
|
2023-05-25 11:35:07 -04:00 |
|
bholmesdev
|
dc31b8a722
|
[ci] format
|
2023-05-24 20:54:43 +00:00 |
|
Ben Holmes
|
1efaef6be0
|
Markdoc - Shiki (#7187)
* chore: remove unused util
* chore: changeset
* deps: shiki
* wip: first stab at shiki markdoc config
* feat: get shiki working!
* refactor: return HTML string directly from transform
* chore: move shiki to markdoc dev dep
* refactor: use async cache with clear docs on why
* test: transform units with Shiki config options
* refactor: switch to `extends` model
* refactor: nodes/ -> extensions/
* feat: raise friendly error for Promise extensions
* docs: README
* chore: lint
* chore: dead file
* chore: lowercase for fuzzy find please
* fix: bad ctx spread
* chore: clean up cache, add shiki imp error
* chore: add shiki to optional peer deps
* chore: hoist those consts
* docs: more explicit "install shiki now please"
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* oops bad find and replace
* chore: update changeset
* nit: period haunts me
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
|
2023-05-24 16:52:22 -04:00 |
|
Ben Holmes
|
a9e1cd7e58
|
Fix: Heading ID CI flakiness (#7141)
* feat: use `ctx` object instead of leaky global
* test: heading IDs stale caches
* chore: changeset
|
2023-05-19 14:12:45 -04:00 |
|
bholmesdev
|
d4b00b541b
|
[ci] format
|
2023-05-17 13:16:36 +00:00 |
|
Ben Holmes
|
fb84622af0
|
[Markdoc] headings and heading IDs (#7095)
* deps: markdown-remark
* wip: heading-ids function
* chore: add `@astrojs/markdoc` to external
* feat: `headings` support
* fix: allow `render` config on headings
* fix: nonexistent `userConfig`
* test: headings, toc, astro component render
* docs: README
* chore: changeset
* refactor: expose Markdoc helpers from runtime
* fix: bad named exports (commonjsssss)
* refactor: defaultNodes -> nodes
* deps: github-slugger
* fix: reset slugger cache on each render
* fix: bad astroNodes import
* docs: explain headingSlugger export
* docs: add back double stringify comment
* chore: bump to minor for internal exports change
|
2023-05-17 09:13:10 -04:00 |
|