MarkMindCkm / obsidian-enhancing-mindmap

obsidian plugin editable mindmap,you can edit mindmap on markdown file
MIT License
592 stars 51 forks source link

angle brackets can not be correctly saved in node content #40

Closed pylemon closed 3 years ago

pylemon commented 3 years ago

When new node has content like "<some text here> other text", it will save to node correctly in the first time. but when you try to modify it. the content in angle brackets are disappared together with the angle brackets, leaving only "other text"

This is very annoying when you making some mind map about some tech documentation.

MarkMindCkm commented 3 years ago

Can you give me a demo? I need detail about this

pylemon commented 3 years ago
  1. crate a new node with content "<hello> world"
  2. when save the node, the content will be changed to " world"
pylemon commented 3 years ago

FYI, I've tried to add \ to escape <, it will save correctly on the first time, but when you try to modify the node, things will be the same as above.

  1. create new node with content "\<hello\> world"
  2. save the node, will get the right content "<hello> world"
  3. edit the node, content will changed to "\ world"
MarkMindCkm commented 3 years ago

FYI, I've tried to add \ to escape <, it will save correctly on the first time, but when you try to modify the node, things will be the same as above.

  1. create new node with content "\<hello\> world"
  2. save the node, will get the right content "<hello> world"
  3. edit the node, content will changed to "\ world"

The browser parses <hello\> as a custom tag , next version will solve this

MarkMindCkm commented 3 years ago

v0.1.7