kotaindah558k downloadsExtend your Markdown syntax using delimiters instead of HTML tags, such as underlining, superscript, subscript, highlighting, and spoiler.

Provides some alternatives for inline and block formatting using non-standard syntaxes instead of using html tags, such as underline, superscript, and much more.
There are six inline formattings that currently developed in this plugin:
| Type | Syntax | Result |
|---|---|---|
| insertion | ++your text++ |
your text |
| spoiler | ||your text|| |
your text |
| superscript | ^your-text^ |
your-text |
| subscript | ~your-text~ |
your-text |
| highlight | =={color}your text== |
your text |
| custom span | !!{myCls}your text!! |
your text (should be rendered with the myCls class defined) |
By default:
<sup> and <sub> do.Additionally, for the highlight and custom span, you may insert a tag right after the opening delimiter, specifying the color for the highlight, and the classes for the custom span.
Currenty, this plugin only support Pandoc-style fenced div with some modifications. You only need an opening delimiter (three consecutive colons at least) to start the syntax. Blank line or the end of the document will act as a syntax closing. No need of closing delimiter.
::: my-class-1 my-class-2
This is fenced div content.
::: another-class
Another fenced div content.
Under "Custom highlight" section in the settings, you can:
In the settings, you can predefine specific tags for custom span and fenced div, then can be displayed in the tag menu. Same as the color palattes, you can set their name and arrange them.
This plugin provides commands to toggle each formatting type, also commands to show the color and tag menu. You can set the keymap for each of them through "Hotkeys" in the settings.
It also brings functionality of all those commands (except for fenced div) to the context menu, by right-clicking on the editor and choosing "More format".
[!Note]
In mobile devices, those commands can be added into the toolbar.
With "Tidier formatting" enabled in the settings, you can format a single word simply by placing the cursor on it, without the need to select the entire word. Otherwise, it acts like a normal wrapper.
[!Note]
You don't need to reload the app after changing the settings.
With tag attached to them, you can insert your own CSS style rules based on their tag. For instance, you can apply this CSS rules to the markdown below:
.text-large { font-size: 48px }
.text-green { color: green }
.align-center { text-align: center }
.bordered { border: 4px solid red }
!!{text-large text-green}Large text with green color.!!
:::align-center bordered
Should be aligned to the center
and bordered.
[!Note]
For which characters are allowed in the tag, see "Syntax Rules" section below.
We move the explanation to this page.
extended-markdown-parser under YOUR_VAULT_NAME/.obsidian/plugins.manifest.json, main.js, and style.css from the latest release into the folder.Of course it's working on both, except for the fenced div.
I tested it on a 250kB file and it's still working fine. This plugin also uses parser that implemented simple incremental and partial parsing, so you don't need to worry about facing with large files. But if you still have some issues with it, feel free to inform me what the issues you are struggling with.
It depends on what character the others use in their syntax.
This plugin have been tested in the latest version of Obsidian (about 1.7.x - 1.8.x), and haven't been tested yet in the version 1.6.x and below.
Feel free to let me know if you find any bugs...
Thanks to: