Closed ShahriarKh closed 8 months ago
Hi @ShahriarKh, Thanks for figuring this out! It's a pretty sleek solution.
I've added the steps to set this up as a separate page in the wiki here: https://github.com/damiankorcz/Prism-Theme/wiki/Mark-Highlight-Shortcuts-using-the-Text-Format-Plugin
...and added a mention to it in the main guide for the Mark Highlight System here: https://github.com/damiankorcz/Prism-Theme/wiki/Mark-Highlight-System-Guide
That's very kind of you
Hi @damiankorcz Big thanks for maintaining this awesome theme!
Following #97 for an easier way to mark text, I created a simple script to add all possible styles and allow toggling mark styles with the help of "custom wrapper" functionality of https://github.com/Benature/obsidian-text-format plugin.
I'm posting it here so everyone can use it (this can be added to Wiki too π)
Steps:
for (let color of colors) { for (let style of styles) { for (let textStyle of textStyles) { console.log(
{ "name": "Mark: ${color.name} - ${style.name} - ${textStyle.name}", "prefix": "<mark class=\\"${color.class} ${style.class} ${textStyle.class}\\">", "suffix": "</mark>" },
); } } }