Closed floriandierickx closed 5 years ago
Illustration:
And the option 'Parse Liste Items is disabled'.
I downgraded to the package 0.4.2 and the issue is no longer there. The update also causes a large text not to display the mindmap anymore (empty screen), maybe due to this issue as well?
Parsing links is a new feature I added, it is useful when you have relative links to other markdown files, so you can expand nested mindmaps.
Thanks, that is a good suggestion, I think it might make sense to rename the option to Parse List Items and Links
and disable link parsing when the option is disabled. Another think would probably to maybe ignore HTTP links altogether, I will think about that.
In the case of the empty screen, could you open the menu View -> Developer -> Toggle Developer Tools and take a screenshot to see if there are any errors (red text in the console)?
Ok, cool, thanks! And for the empty screen issue: when I follow your guidelines it renders the following text in the console 5 times:
The full text output of the error message is:
`Uncaught (in promise) TypeError: Cannot read property '0' of undefined
at /Users/florian/.atom/packages/markdown-mindmap/node_modules/markmap/src/parse.markdown.js:57
at Array.map (
| (anonymous) | @ | /Users/florian/.atom…arse.markdown.js:57
| parseMarkdown | @ | /Users/florian/.atom…arse.markdown.js:55
| module.exports.MarkdownMindmapView.parseMarkdown | @ | markdown-mindmap-view.coffee? [sm]:245
| module.exports.MarkdownMindmapView.renderMarkdownText | @ | markdown-mindmap-view.coffee? [sm]:259
| (anonymous) | @ | markdown-mindmap-view.coffee? [sm]:179
| Promise resolved (async) | |
| module.exports.MarkdownMindmapView.renderMarkdown | @ | markdown-mindmap-view.coffee? [sm]:179
| (anonymous) | @ | markdown-mindmap-view.coffee? [sm]:151
| observeKeyPath | @ | VM22
Great, thank you. The error report is very helpful. I will fix it when I manage to get some time, hopefully soon.
This should be addressed in the latest version (0.6.0
). By default http and other external links are not parsed and there is a new option Parse Nested Links
which you can use to disable the link parsing entirely.
Sorry for the delay in replying, but now in PhD-editing mode with the new version and it works wonderful! Thanks!
Links inside a text line in the following format:
textextextextext [link1](http://website1.com), [link2](http://website2.com) and [link3](http://website3.com) textextextextextextext
gets parsed in mindmap as 3 nodes (link1, link2 and link3) under the heading above the text.