0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/integrations/markdoc/test/fixtures
Alex Sherwin 7461e82c81
Add "allowHTML" option for Markdoc with HTML parsing/processing (#7597)
* 7576 - initial support for HTML inside Markdoc.

This uses htmlparser2 to perform a pure token transform/mutation
on the markdown-it tokens, replacing the original raw HTML string
tokens with a richer set of tokens per HTML node, and in the process
Markdoc tags are interleaved in the resulting token graph at the
appropriate locations

This removes the legacy config of the @astrojs/markdoc integration
entirely (suggested by @bholmesdev) and introduces a new type for
options to be specified in the astro config, initially, with just the new
"enableHTML" option

When "enableHTML" is *not* enabled (the default), the behavior
of the entire @astrojs/markdoc integration should remain functionally
equivalent to before this change

* 7576 - fixed issues with whitespace preservation

also:

* cleaned up " to ' for astro project preferred linting
* made the html rendering test fixture use a dynamic path

* 7576 - detailed nested HTML test coverage

* 7576 -  component + HTML interleaved tests

* 7576 -  fix lint problems from previous changes

* 7576 -  some commentary

* 7576 -  file naming, refactor html under imports, package.json exports definition for html

* 7576

* move out of extensions dir, remove export
* cdata handling changes

* 7576

* inline license from third party code
* cleanup test class copy of HTML output
* remove // third party indicators for imports (clarification: not third party code, just a indicator this group of imports is third party)

* 7576 - fixed test before/after for DRY'ness

* 7576 - no need to React-ify HTML attribute case

* 7576 - rename "enableHTML" option to "allowHTML"

* Added Markdoc allowHTML feature changeset

* 7576 - updated README with allowHTML info

* 7576 - fixed changeset typo

* 7576 - minor edits based on PR feedback for docs

* 7576 - minor edits based on PR feedback for docs
2023-07-24 19:34:06 -04:00
..
content-collections
headings
headings-custom feat: New Markdoc render API (#7468) 2023-06-27 15:05:17 -04:00
image-assets Use stub image service for tests (#7376) 2023-06-13 22:47:24 +08:00
propagated-assets nit: export props has been unnecessary.. forever (#7646) 2023-07-14 09:57:06 -04:00
render-html Add "allowHTML" option for Markdoc with HTML parsing/processing (#7597) 2023-07-24 19:34:06 -04:00
render-null Fix missing styles and scripts on document: {render:null} (#7309) 2023-06-06 13:40:04 -04:00
render-simple
render-with-components Fix: Hyphens breaking Markdoc tags (#7599) 2023-07-07 16:50:06 -04:00
render-with-config Fix: Markdoc type errors (#7311) 2023-06-06 14:48:54 -04:00
variables Markdoc - remove $entry variable (#7244) 2023-05-30 16:18:20 -04:00