I have defined a few macros which allow me to color certain words in my notes to draw attention. They work fine in logseq, but mark map doesn't render them.
:macros
{
:colored-text "[:span {:style \"color: $1\"} $2]"
:yellow "[:span {:style \"color: yellow\"} $1]"
:yellow-bold "[:span {:style \"color: yellow; font-weight: bold;\"} $1]"
:red "[:span {:style \"color: red\"} $1]"
:red-bold "[:span {:style \"color: red; font-weight: bold;\"} $1]"
:green "<span style=\"color: #00ff4c;\">$1</span>"
:green-bold "[:span {:style \"color: #00ff4c; font-weight: bold;\"} $1]"
}
Example:
-
Logseq:

-
MarkMap:

Here is the raw text:
<span style="color:red;font-weight:bold;">Only one task </span>should have actions {{red-bold "that write to a shared variable."}}
Basic HTML does render (cuz it's ultimately MD), but writing <span style="color:red;font-weight:bold;"> every time is long. I wanna be able to spend less time annotating my notes, and more time reading/visualizing them with MarkMap.
I have defined a few macros which allow me to color certain words in my notes to draw attention. They work fine in logseq, but mark map doesn't render them.
:macros { :colored-text "[:span {:style \"color: $1\"} $2]" :yellow "[:span {:style \"color: yellow\"} $1]" :yellow-bold "[:span {:style \"color: yellow; font-weight: bold;\"} $1]" :red "[:span {:style \"color: red\"} $1]" :red-bold "[:span {:style \"color: red; font-weight: bold;\"} $1]" :green "<span style=\"color: #00ff4c;\">$1</span>" :green-bold "[:span {:style \"color: #00ff4c; font-weight: bold;\"} $1]" }Example:
Logseq:

MarkMap:

Here is the raw text:
Basic HTML does render (cuz it's ultimately MD), but writing
<span style="color:red;font-weight:bold;">every time is long. I wanna be able to spend less time annotating my notes, and more time reading/visualizing them with MarkMap.