Skip to content

Releases: nuxt-modules/mdc

v0.2.0

20 Sep 13:48
Compare
Choose a tag to compare

🚀 Enhancements

  • MDC: Pass excerpt and toc to slot (#23)
  • MDC: Accept parser options in <MDC> (#36)
  • Migrate to shikiji (#27)

🩹 Fixes

  • node-utils: Do not import utils from Vue package (e7387d8)
  • node-env: Dynamic import module options (cc6045a)
  • unist-compiler: Heading tag detection (9c357bf)
  • slot: Remove default unwrap tag for backward compatibility (39d3bc9)
  • Pass missing highlight class (#21)
  • TrimEnd to code in highlighter, close #29 (#32, #29)
  • unwrapSlot: Handle string tags (#30)
  • highlighter: Missing highlights (c5633c3)
  • Inline code highlighting (#39)
  • MDCRenderer: Missing body (ee5afad)
  • module: Use url in module alias (#45)

📖 Documentation

🏡 Chore

  • Enable wasm for shikiji support in CF (d9a1874)

✅ Tests

  • Test highlighted lines in code blocks (7cbe123)

❤️ Contributors


BREAKING CHANGE: There is a slight breaking change in code highlighting due to migrating to Shikiji. Exported useShikiHighlighter, now returns only getHighlightedAST function to highlight code block and return AST tree.

v0.1.6

31 Aug 15:35
Compare
Choose a tag to compare

🩹 Fixes

  • Remark/rehype plugin options (911eea3)
  • slot-transformer: Prevent context conflict (61291ff)

v0.1.5

31 Aug 10:54
Compare
Choose a tag to compare

🩹 Fixes

  • MDC: Reduce key size (3c324d0)
  • slot-transformer: Prevent duplicate import (654be0f)

🏡 Chore

v0.1.4

30 Aug 16:03
Compare
Choose a tag to compare

🩹 Fixes

  • slot-transformer: Drop plugin in favor of context imports (f941516)
  • MDC: Use raw content as useAsyncData key in <MDC> (400e0de)
  • MDCSlot: Do not merge non-text vnodes (82a5ff1)

v0.1.3

30 Aug 10:18
Compare
Choose a tag to compare

🩹 Fixes

  • Exclude @nuxtjs/mdc from vite optimization (ac3cd57)
  • Typecheck (f65b3e9)

v0.1.2

29 Aug 13:34
Compare
Choose a tag to compare

🚀 Enhancements

  • Expose unwrapSlot (#7)

v0.1.1

29 Aug 09:14
Compare
Choose a tag to compare
  • Update docs
  • Upgrade remark-mdc to v2
  • Upgrade mdast-util-to-hast to ^13.0.2

v0.1.0

28 Aug 16:02
Compare
Choose a tag to compare

Initial Release 🎉