Two square-bracketed expressions with a space between lose the space

David Chapman's Avatar

David Chapman

31 Mar, 2015 07:48 AM

If I have the text [foo] [bar] — there is a space between the first ] and the second [ — it gets lossed by the multimarkdown processor. So the output is [foo][bar] (no space).

Is this the indended behavior, or a bug?

  1. Support Staff 1 Posted by Fletcher on 31 Mar, 2015 01:07 PM

    Fletcher's Avatar

    David,

    `[foo] [bar]` (with space) and `[foo][bar]` (without space) are the same
    (assuming that there is not another `[foo2]` preceding this string) --
    both represent a link labelled `bar` and defined elsewhere.

    If `[bar]` is not defined, then there is no link to insert, so the
    original text is recreated with `[description][label]`.

    If you don't want a link, then you should escape something (e.g. the
    leading `[` or the space) so that it is not treated like a link.

    Fletcher

    PS> Questions about MultiMarkdown itself are best addressed on the MMD
    site (http://fletcherpenney.net/mmd). This site is for MultiMarkdown
    Composer.

  2. 2 Posted by David Chapman on 31 Mar, 2015 10:30 PM

    David Chapman's Avatar

    Thanks, I'll follow up over on the correct site!

  3. Fletcher closed this discussion on 21 Aug, 2015 09:17 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac