Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some markmap elements not rendering #159

Open
ldrozdowski opened this issue Dec 31, 2024 · 0 comments
Open

Some markmap elements not rendering #159

ldrozdowski opened this issue Dec 31, 2024 · 0 comments

Comments

@ldrozdowski
Copy link

ldrozdowski commented Dec 31, 2024

Do you plan extending markmap support? I was hoping to achieve similar behavior to https://markmap.js.org/repl e.g. When copy paste an example given there then [x] checkbox or table not rendering properly. When edit, - dashes are converted into heading and map is modified messy way.

Steps:
Go to source mode and paste (remove \ from code blocks)

---
mindmap-plugin: basic
---

# markmap

## Links

- [Website](https://markmap.js.org/)
- [GitHub](https://github.com/gera2ld/markmap)

## Related Projects

- [coc-markmap](https://github.com/gera2ld/coc-markmap) for Neovim
- [markmap-vscode](https://marketplace.visualstudio.com/items?itemName=gera2ld.markmap-vscode) for VSCode
- [eaf-markmap](https://github.com/emacs-eaf/eaf-markmap) for Emacs

## Features

Note that if blocks and lists appear at the same level, the lists will be ignored.

### Lists

- **strong** ~~del~~ *italic* ==highlight==
- `inline code`
- [x] checkbox
- Katex: $x = {-b \pm \sqrt{b^2-4ac} \over 2a}$ <!-- markmap: fold -->
  - [More Katex Examples](#?d=gist:af76a4c245b302206b16aec503dbe07b:katex.md)
- Now we can wrap very very very very long text based on `maxWidth` option
- Ordered list
  1. item 1
  2. item 2

### Blocks

\`\`\`js
console.log('hello, JavaScript')
\`\`\`

| Products | Price |
|-|-|
| Apple | 4 |
| Banana | 2 |

![](https://markmap.js.org/favicon.png)

Switch to mindmap and and any new node
Switch to markdown in source mode

Observed
After edit content is modified

---
mindmap-plugin: basic
---

# markmap

## Links

### [Website](https://markmap.js.org/)

### [GitHub](https://github.com/gera2ld/markmap)

## Related Projects

### [coc-markmap](https://github.com/gera2ld/coc-markmap) for Neovim

### [markmap-vscode](https://marketplace.visualstudio.com/items?itemName=gera2ld.markmap-vscode) for VSCode

### [eaf-markmap](https://github.com/emacs-eaf/eaf-markmap) for Emacs

### Sub title

## Features

### Lists

#### **strong** ~~del~~ *italic* ==highlight==

#### `inline code`

#### [x] checkbox

#### Katex: $x = {-b \pm \sqrt{b^2-4ac} \over 2a}$ <!-- markmap: fold -->

##### [More Katex Examples](#?d=gist:af76a4c245b302206b16aec503dbe07b:katex.md)

#### Now we can wrap very very very very long text based on `maxWidth` option

#### Ordered list

##### 1. item 1

##### 2. item 2

### Blocks

#### \`\`\`js
console.log('hello, JavaScript')
\`\`\`

#### Sub title

##### Sub title

###### Products

###### Price

##### Sub title

###### Sub title
- Apple
- 4

###### Sub title
- Banana
- 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant