wjy23353 downloadsCopy notes or a selection as clean, portable Markdown by stripping wikilinks, embeds, callouts, frontmatter, comments, tags, highlights and footnotes. Ready for MarginNote 4 or any Markdown app.
Copy note content as clean, standard Markdown — stripping Obsidian-specific syntax so it renders correctly in MarginNote 4 and any other Markdown app.
Obsidian has many features that are not part of standard Markdown. When you copy a note into MarginNote 4 (or a plain Markdown editor), syntax such as [[wikilinks]], ![[embeds]], > [!note] callouts, YAML frontmatter, %%comments%%, inline #tags, ==highlight==, ~~strikethrough~~, footnotes and block references either does not render or leaks content that was meant to stay hidden. TranMD converts a note — or just the selected text — into clean, portable Markdown and copies it to your clipboard.
$$math$$ blocks are protected from conversion| Obsidian syntax | TranMD output |
|---|---|
[[note|alias]], [[note]] |
alias, note (plain text) |
[[note#heading]] |
heading |
![[image.png|300]] |
image.png |
> [!note] Title |
> Title (kept as a blockquote) |
| YAML frontmatter | removed |
%%comment%% |
removed |
inline #tag |
tag (hash removed) |
^blockid |
removed |
==highlight== |
<mark>highlight</mark> |
~~strikethrough~~ |
strikethrough (MN4 has no strikethrough) |
[^1] footnotes |
reference removed, definition becomes - footnote: ... |
fenced code / inline code / $$math$$ |
left untouched |
Search for TranMD in Settings → Community plugins → Browse.
manifest.json and main.js from the latest release.<vault>/.obsidian/plugins/tranmd/.Ctrl/Cmd+P):.md file → Copy as MarginNote MarkdownThen paste into MarginNote 4 and turn on the Markdown toggle in the card's text field.
The plugin is not desktop-only and includes a native clipboard path, so it also works on Obsidian mobile:
⋮ menu → Copy as MarginNote Markdown$...$ math is not individually protected ($$...$$ blocks are). A == or ~~ inside inline math could be converted..md files are kept as-is; they will not navigate inside MarginNote.npm install
npm run build # bundle src/ into main.js
npm test # run the conversion tests
npm run dev # watch build