Closed boulderalf closed 10 years ago
Alfred, Thank you for your contribution and glad you find mm2markdown useful. I'll look at the merge this weekend. I've been using pandoc to convert my markdown to other formats. There's a sublime text 3 package ( https://github.com/tbfisher/sublimetext-Pandoc) that makes it really easy to edit and convert from markdown.
I'm not sure what markdownpad uses for conversion, but there is a pandoc option that automatically numbers headers in the output document:
-N, --number-sections
Number section headings in LaTeX, ConTeXt, HTML, or EPUB output. By default, sections are not numbered. Sections with class unnumbered will never be numbered, even if --number-sections is specified.
Alfred, I've been negligent here - sorry for the delay. Is there a way we could do this without having to maintain two files that are 95% identical?
Does the Node Numbering feature in Freeplane (Properties Panel > Core text > Node numbering) not accomplish the same thing? It is exported correctly as part of the header by mm2markdown as it stands today.
Let me know your thoughts and we can revisit.
Hi Peter,
I was not aware of the node numbering feature. I will try that out and let you know.
Alfred On Apr 3, 2014 9:35 AM, "Peter Yates" notifications@github.com wrote:
Alfred, I've been negligent here - sorry for the delay. Is there a way we could do this without having to maintain two files that are 95% identical?
Does the Node Numbering feature in Freeplane (Properties Panel > Core text > Node numbering) not accomplish the same thing? It is exported correctly as part of the header by mm2markdown as it stands today.
Let me know your thoughts and we can revisit.
Reply to this email directly or view it on GitHubhttps://github.com/py/mm2markdown/pull/5#issuecomment-39466254 .
Hi Peter,
I tried out the node numbering feature and that was exactly what I was looking for. Now I just need to figure out how to undo my pull request. Or maybe it is easier for you to just reject the pull request.
Thanks for letting me know about the Node Numbering feature.
Alfred
Hello,
I found your mm2markdown.xsl for Freeplane very helpful. Up until today I was using Freemind and some Javascript hacks and a lot of copy/paste to export a Freemind map to Markdown. I am using MarkdownPad 2 for converting markdown to PDF. Unfortunately that application does not support numbered headings so I made a small tweak to your mm2markdown.xsl file to allow Freeplane to export Markdown with automatic heading numbering. I did not want to change your existing mm2markdown.xsl so I created a new one called mm2markdown-numbering.xsl so that Freeplane users have the option of exporting numbered or non-numbered headings.
The changes are...
Regards,
Alfred