-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Markdoc asset bleed, second try (#7185)
* Revert "revert: markdoc asset bleed (#7178)" This reverts commit 57e65d2. * 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>
- Loading branch information
1 parent
c4c086e
commit 339529f
Showing
28 changed files
with
653 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'astro': patch | ||
'@astrojs/markdoc': patch | ||
'@astrojs/mdx': patch | ||
--- | ||
|
||
Bring back improved style and script handling across content collection files. This addresses bugs found in a previous release to `@astrojs/markdoc`. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
export const PROPAGATED_ASSET_FLAG = 'astroPropagatedAssets'; | ||
export const CONTENT_RENDER_FLAG = 'astroRenderContent'; | ||
export const CONTENT_FLAG = 'astroContentCollectionEntry'; | ||
export const DATA_FLAG = 'astroDataCollectionEntry'; | ||
export const CONTENT_FLAGS = [CONTENT_FLAG, DATA_FLAG, PROPAGATED_ASSET_FLAG] as const; | ||
|
||
export const VIRTUAL_MODULE_ID = 'astro:content'; | ||
export const LINKS_PLACEHOLDER = '@@ASTRO-LINKS@@'; | ||
export const STYLES_PLACEHOLDER = '@@ASTRO-STYLES@@'; | ||
export const SCRIPTS_PLACEHOLDER = '@@ASTRO-SCRIPTS@@'; | ||
|
||
export const CONTENT_FLAGS = [ | ||
CONTENT_FLAG, | ||
CONTENT_RENDER_FLAG, | ||
DATA_FLAG, | ||
PROPAGATED_ASSET_FLAG, | ||
] as const; | ||
|
||
export const CONTENT_TYPES_FILE = 'types.d.ts'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.