Extended Markdown Syntax - Give Your Text Another Style

Hello everyone, I created my first plugin: Extended Markdown Syntax. This plugin extend built-in markdown syntax in Obsidian with a few syntax taken from other markdown implementation, such as insertion, superscript, subscript and so on…

This plugin aims to make text formatting easier compared to using HTML tags.

For installation, you need to do it manually or by using (BRAT)[GitHub - TfTHacker/obsidian42-brat: BRAT - Beta Reviewer's Auto-update Tool for Obsidian.], since this plugin hasn’t come to official release yet.

Feel free to let me know if you’re facing some issues in it.

3 Likes

Looks fantastic and straight to the point! As it is not yet available through the Obsidian plugins, maybe a line or two on installing it manually or via BRAT.

I will for sure test and use it!

Cheers, Marko :nerd_face:

1 Like

Is it possible to assign a custom CSS class to an element using the {(myClass}} syntax, or a paragraph using the !!anotherClass!! syntax?

If not, could that be considered for a future version?

1 Like

Currently not. For now, !!...!! syntax can only be applied for alignment, and {...} syntax can only be used inside the highlight. Particularly, you can use {...} to customize inline text style via CSS, but make sure that it’s inside the highlight syntax.

So, if you type =={MYCLASS}myText==, the element will appear with two classes: cm-custom-highlight and cm-custom-highlight-MYCLASS (without cm in preview mode). Through those classes, you can add some style rule in your CSS snippet.

I haven’t planned it yet, but may be.

Come to think of, as the dataview devoted guy that I am, I’m more likely to use [jnfo:: My info on something] or [question:: Why use highlights, when I can use inline fields?] which allows for complete styling of the fields, (and allows for hiding of the key. This way, I’m able to denote why I want it highlighted, in addition to having an easy retrieval through querying.

Nice work though on doing your own plugin! :smiley:

1 Like

It’s true though, haha :smiley:. And, yes, my first purpose from making such highlight tagging is to colorize it more easily, as some plugins do this through html tags.

Nice though :+1: