Zettt / km-markdown-library

Markdown library for Keyboard Maestro.
193 stars 10 forks source link

Hard wrapped lists don't work well with List * conversion and some characters are caught by regex accidentally. #12

Closed Zettt closed 10 years ago

Zettt commented 10 years ago

Example:

- Looking at the Competition
    - Skitch
        * For
        * Against
    - Pixa
        - $30 (-20% on the AppStore)
        - No iOS Client
        - Integrates with Dropbox and offers interesting features such
          as Live folders
        + Autotagging
        + Color search too
        - Interesting tools such as the Loupe
        - No annotation features though
    * Sparkbox

More information on odd behavior.

Zettt commented 10 years ago

Lookbehind for $30 being replaced with $- 30.

Zettt commented 10 years ago

Changing the regex to (\t*?)(\S.*) fixes the $30 issue. Fix

Zettt commented 10 years ago

This issue is still open, though it is partially closed. The problem here are "hard-wrapped" lines. These do not work well when converting to a numbered list. Users are recommended to use soft-wrap in their editors.