FSX / misaka

A Python binding for Hoedown.
http://misaka.61924.nl
MIT License
418 stars 65 forks source link

Unexpected Formatting of the triangular pattern #80

Open noisytoken opened 4 years ago

noisytoken commented 4 years ago

I am trying to show a triangular pattern like this:

                               * 
                            *  *  * 
                         *  *  *  *  * 
                      *  *  *  *  *  *  * 
                   *  *  *  *  *  *  *  *  * 
                *  *  *  *  *  *  *  *  *  *  * 
             *  *  *  *  *  *  *  *  *  *  *  *  * 
          *  *  *  *  *  *  *  *  *  *  *  *  *  *  * 
       *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * 
    *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * 

But It is being rendered as:

 * 
                            *  *  * 
                         *  *  *  *  * 
                      *  *  *  *  *  *  * 
                   *  *  *  *  *  *  *  *  * 
                *  *  *  *  *  *  *  *  *  *  * 
             *  *  *  *  *  *  *  *  *  *  *  *  * 
          *  *  *  *  *  *  *  *  *  *  *  *  *  *  * 
       *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * 
    *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * 

why the first * start at the first column?

I am using the following flags.

renderer = CustomHTMLRenderer(flags=('escape','hard-wrap'))
markdown = m.Markdown(renderer, extensions= m.EXT_TABLES | m.EXT_FENCED_CODE | m.EXT_AUTOLINK |
                                      m.EXT_NO_INTRA_EMPHASIS | m.EXT_MATH  | m.EXT_MATH_EXPLICIT )