Skip to content

[Feature-Request] Allow logseq macros to be rendered in mark map #87

@Shiv2205

Description

@Shiv2205

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:
    Screenshot 2024-10-10 at 10 02 19

  • MarkMap:
    Screenshot 2024-10-10 at 10 03 27

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions