You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The built-in Markdown preview renders Obsidian/GitHub callout (alert) blockquotes as plain blockquotes. A block like > [!note] shows the literal [!note] marker instead of a styled callout. This makes notes authored in Obsidian (which relies heavily on callouts) hard to read inside Orca.
Steps to reproduce
Open a .md file containing:
> [!note] Optional title
> Body text of the callout.
> [!warning]
> Another one.
Expected: styled callout boxes (icon + colored border/title), marker line consumed. Actual: ordinary blockquotes; the [!note] / [!warning] text is shown verbatim.
Root cause (from inspecting the shipped renderer bundle, v1.4.137)
The preview's react-markdown pipeline is:
remark: remark-parse, remark-gfm, remark-frontmatter, remark-breaks, remark-math, plus the custom wikilink plugin
remark-gfm does not implement alert/callout blockquotes — those need a dedicated plugin. There's currently no alert/callout plugin in the chain, so > [!type] falls through as a blockquote.
Fuller (Obsidian superset — arbitrary types, inline title on the marker line, foldable [!note]- / [!note]+): a small remark/rehype transform that rewrites a blockquote whose first paragraph starts with /^\[!(\w+)\]([+-]?)\s?(.*)/ into a div.callout.callout-<type>.
Implementation note (gotcha)
Because the pipeline runs rehype-sanitize with defaultSchema, the added callout div / className will be stripped unless you either (a) run the transform after sanitize, or (b) extend the sanitize schema to allow the callout element + class names. Worth accounting for so the styling doesn't silently disappear.
+1. Worth noting markdown-it-obsidian-callouts (Apache-2.0) already reproduces Obsidian's element structure and CSS class names (.callout[data-callout] …), so preview rendering and theming would carry over with it. Umbrella request: #44539
Activity
feat: render GitHub/Obsidian callout alerts in Markdown preview
EdgerHao commentedon Nov 19, 2026
+1. Worth noting
markdown-it-obsidian-callouts(Apache-2.0) already reproduces Obsidian's element structure and CSS class names (.callout[data-callout]…), so preview rendering and theming would carry over with it. Umbrella request: #44539