feat: add callout support (#655)

* feat: toggle .dark class on theme change

* feat: add callouts with rehype-callouts plugin

* docs: update blog posts with callouts
This commit is contained in:
Sat Naing
2026-06-06 09:09:08 +07:00
committed by GitHub
parent 98f15ee3bc
commit e0506cb41e
10 changed files with 106 additions and 25 deletions
+15
View File
@@ -29,6 +29,9 @@ importers:
lodash.kebabcase:
specifier: ^4.1.1
version: 4.1.1
rehype-callouts:
specifier: ^2.1.2
version: 2.1.2
remark-collapse:
specifier: ^0.1.2
version: 0.1.2
@@ -2263,6 +2266,10 @@ packages:
regex@6.1.0:
resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==}
rehype-callouts@2.1.2:
resolution: {integrity: sha512-ZZWZ6EknUHiSzr4pQ88C7db3su4DElfJRmphZJbXpDdwW3urTwlYZpHckoC9pjEvBmUEEiJAM0uuc2uxyLdTfg==}
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
rehype-parse@9.0.1:
resolution: {integrity: sha512-ksCzCD0Fgfh7trPDxr2rSylbwq9iYDkSn8TCDmEJ49ljEUBxDVCzCHv7QNzZOfODanX4+bWQ4WZqLCRWYLfhag==}
@@ -5341,6 +5348,14 @@ snapshots:
dependencies:
regex-utilities: 2.3.0
rehype-callouts@2.1.2:
dependencies:
'@types/hast': 3.0.4
hast-util-from-html: 2.0.3
hast-util-is-element: 3.0.0
hastscript: 9.0.1
unist-util-visit: 5.1.0
rehype-parse@9.0.1:
dependencies:
'@types/hast': 3.0.4