mm2markdown with heading numbering

Hello,

I found your mm2markdown.xsl for Freeplane very helpful.  Up until today I was using Freemind and some [Javascript hacks](http://codepen.io/boulderalf/full/ntewK) and a lot of copy/paste to export a Freemind map to Markdown.  I am using [MarkdownPad 2](http://markdownpad.com/) 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...

~~~diff
--- C:\personal\github_projects\mm2markdown\xslt\mm2markdown.xsl	2014-03-07 13:45:32.000000000 -0700   
+++ C:\personal\github_projects\mm2markdown\xslt\mm2markdown-numbering.xsl	2014-03-07 13:52:39.000000000 -0700   
@@ -1,15 +1,24 @@   
 <?xml version="1.0" encoding="UTF-8" ?>   
    
 <!--   
            
-MINDMAPEXPORTFILTER md;markdown Markdown   
+MINDMAPEXPORTFILTER md;markdown Markdown with numbering   
    
 v. 0.3   
                    
 This code released under the GPL. : (http://www.gnu.org/copyleft/gpl.html)    
    
+Document : mm2markdown-numbering.xsl    
+Created on : 07 March, 2014   
+Authors : Alfred Sawatzky  alfred.sawatzky@gmail.com   
+Description: Transforms freeplane mm to markdown md and numbers the headings.   
    
+******************************************************************************   
+Based on mm2markdown.xsl, original notice appears below   
+******************************************************************************   
 Document : mm2markdown.xsl    
 Created on : 20 November, 2013    
 Authors : Lee Hachadoorian Lee.Hachadoorian@gmail.com and Peter Yates pyates@gmail.com   
 Description: Transforms freeplane mm to markdown md.    
 * Nodes become headings and subheadings, Notes become paragraphs.    
 * Attributes of root node become document metadata.    
@@ -174,12 +183,13 @@   
                 <!-- Create the headers from non-root node text using number signs -->   
                         <xsl:otherwise>   
                                 <xsl:text>&#xA;</xsl:text>   
                                 <xsl:call-template name="numberSign">   
                                         <xsl:with-param name="howMany" select="count(ancestor::*) - 1"/>   
                                 </xsl:call-template>   
+                                <xsl:number format=" 1 " level="multiple" count="node" from="/map/node"/>   
                         </xsl:otherwise>   
                 </xsl:choose>   
                 <xsl:text> </xsl:text>   
                 <!-- Node text -->   
                 <xsl:if test="@TEXT">   
                         <xsl:value-of select="normalize-space(@TEXT)" />     
~~~


Regards,

Alfred