Houston (Bot)
f0666b92c3
[ci] release ( #7594 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-11 22:27:04 +08:00
Ben Holmes
8df6a423c5
Fix: Hyphens breaking Markdoc tags ( #7599 )
...
* fix: handle hyphens in tag names
* test: add hyphen in test suite
* chore: changeset
2023-07-07 16:50:06 -04:00
Ben Holmes
c135633bf6
Fix: Markdoc v0.4.0 docs ( #7593 )
...
* docs: add docs link to markdoc error
* docs: add named exports guide to README
* chore: changeset
* edit: no like so
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* edit: exposed as named exports
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
---------
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-07-07 09:22:26 -04:00
zyoshoka
6f1c4ea388
Fix code snippet in markdoc README ( #7592 )
2023-07-07 07:22:47 -04:00
Houston (Bot)
f224078a65
[ci] release ( #7578 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-06 23:16:08 +08:00
Bjorn Lu
30d04db981
Refactor SSRResult
and RenderContext
( #7575 )
2023-07-06 00:25:24 +08:00
Houston (Bot)
f820bb3f0b
[ci] release ( #7559 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-05 14:48:04 +08:00
Josh Goldberg ✨
2fea174303
feat: use typescript-eslint@v6's reworked configs ( #7425 )
2023-07-03 20:59:43 +08:00
Houston (Bot)
fc6826ff76
[ci] release ( #7526 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-03 20:53:45 +08:00
Hippo
bc9ce779d3
Move code block titles into comments to match docs ( #7543 )
...
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-01 16:34:49 +02:00
Houston (Bot)
56f1b1229c
[ci] release ( #7496 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-29 17:14:24 +08:00
Ben Holmes
1a9b644e20
fix: ts-expect-error ( #7505 )
2023-06-27 16:25:27 -05:00
bholmesdev
647079da14
[ci] format
2023-06-27 19:08:29 +00:00
Ben Holmes
fb7af55114
feat: New Markdoc render
API ( #7468 )
...
* feat: URL support for markdoc tags
* refactor: move to separate file
* feat: support URL for markdoc nodes
* feat: support `extends` with URL
* chore: changeset
* fix: bad AstroMarkdocConfig type
* fix: experimentalAssetsConfig missing
* fix: correctly merge runtime config
* chore: formatting
* deps: astro internal helpers
* feat: component() util, new astro bundling
* chore: remove now unused code
* todo: missing hint
* fix: import.meta.url type error
* wip: test nested collection calls
* feat: resolve paths from project root
* refactor: move getHeadings() to runtime module
* fix: broken collectHeadings
* test: update fixture configs
* chore: remove suggestions. Out of scope!
* fix: throw outside esbuild
* refactor: shuffle imports around
* Revert "wip: test nested collection calls"
This reverts commit 9354b3cf9222fd65b974b0cddf4e7a95ab3cd2b2.
* chore: revert back to mjs config
* chore: add jsdocs to stringified helpers
* fix: restore updated changeset
---------
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2023-06-27 15:05:17 -04:00
Ben Holmes
f6feff7a29
feat: restart server on markdoc config change ( #7467 )
...
* deps: vite-plugin-restart
* feat: restart on markdoc config change
* chore: changeset
* chore: roll our own restarter!
* deps: remove vite-plugin-restart
* refactor: use good enough option
2023-06-27 10:46:59 -04:00
Houston (Bot)
da56a005d9
[ci] release ( #7449 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-27 08:42:46 -04:00
Erika
4e02a59e42
fix(errors): Deprecate error codes ( #7347 )
...
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-06-26 16:51:06 +08:00
Bjorn Lu
8e3cb20b5c
Format markdown files ( #7439 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-26 11:34:13 +08:00
Houston (Bot)
38b104049a
[ci] release ( #7434 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-22 10:06:15 -04:00
Bjorn Lu
f275d058fc
Update safe dependencies ( #7430 )
2023-06-21 21:09:49 +08:00
Houston (Bot)
1589eaabcd
[ci] release ( #7428 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-20 10:32:26 -04:00
Houston (Bot)
f87680f6df
[ci] release ( #7390 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-19 11:36:45 -04:00
Houston (Bot)
06315a1fde
[ci] release ( #7368 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-13 16:55:58 -04:00
Bjorn Lu
3e1fbc2c8f
Use stub image service for tests ( #7376 )
2023-06-13 22:47:24 +08:00
Houston (Bot)
4f7091206c
[ci] release ( #7354 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-10 13:54:36 -04:00
bholmesdev
777e5d7587
[ci] format
2023-06-10 17:45:51 +00:00
Ben Holmes
a30f2f3de4
Fix Markdoc cloudflare errors ( #7351 )
...
* fix: move `node:` libs out of utils
* fix: node -> default
* chore: remove kleur from markdoc ex (why was this there??)
* chore: lock
* chore: changeset
2023-06-10 13:43:26 -04:00
Ben Holmes
491c2db424
Fix: better collection entry devalue error ( #7341 )
...
* feat: add clear error for devalue parse
* refactor: create error data entry
* deps: up devalue
* chore: changeset
2023-06-09 18:15:11 -04:00
Houston (Bot)
e138f66344
[ci] release ( #7318 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-09 08:40:17 +03:00
Houston (Bot)
8a029d9889
[ci] release ( #7312 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-06 17:24:57 -04:00
bholmesdev
8b5c311b34
[ci] format
2023-06-06 18:51:14 +00:00
Ben Holmes
a11b62ee1f
Fix: Markdoc type errors ( #7311 )
...
* fix: config, prism, shiki exports
* fix: type error for `render` property
* chore: use `.ts` files in select tests for type checks
* fix: type error on shiki() promise
* chore: changeset
2023-06-06 14:48:54 -04:00
Ben Holmes
2a4bb23b2f
Fix missing styles and scripts on document: {render:null}
( #7309 )
...
* fix: propagate assets when using document `render: null`
* fix: reverse spread order
* refactor: use README rec in test
* chore: changeset
* chore: revert unneeded changes
2023-06-06 13:40:04 -04:00
Houston (Bot)
d5a089810f
[ci] release ( #7295 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-06 10:32:10 -05:00
Houston (Bot)
c64dfdd3d8
[ci] release ( #7254 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-02 10:51:28 -04:00
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
563293c5d6
Markdoc: strip HTML comments from output ( #7224 )
...
* feat: strip HTML comments from output
* chore: changeset
2023-05-31 10:09:49 -04:00
Houston (Bot)
ba865f5d64
[ci] release ( #7190 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-30 16:53:55 -04:00
bholmesdev
8da07ab754
[ci] format
2023-05-30 20:21:13 +00: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
Ben Holmes
c7897f20a9
Markdoc: new README for Markdoc nodes ( #7225 )
...
* docs: all-new nodes documentation
* edit: `.astro` ONLY
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: `.` outside links, line break
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: such as, not like
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: more Astro less probs
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: reviewers React to
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: tagz
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: add `default: 'article'` for document
* edit: reword client-side instructions
* edit: prism stylesheet got lost
* fix: heading -> blockquote
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-30 14:51:38 -04:00
Bjorn Lu
df1e6f78df
Fix markdoc image tests ( #7231 )
2023-05-29 16:37:40 +08: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
Emanuele Stoppa
8727b5bd85
fix: formatting comment ( #7206 )
2023-05-25 10:29:11 +01: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
Houston (Bot)
55a0439e00
[ci] release ( #7181 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-23 16:24:16 -04:00
Ben Holmes
57e65d247f
revert: markdoc asset bleed ( #7178 )
...
* revert: markdoc asset bleed
* chore: changeset
2023-05-23 12:16:50 -04:00