Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Issues with two shortcodes used side by side #24

Closed
stephenharris opened this Issue · 2 comments

1 participant

@stephenharris

Shortcodes continue to plauge MarkDown :S....

Shortcodes, in general, now work fine, except when two or more are used next to each other.

 [some_shortcode][some_shortcode]

becomes:

\[some_shortcode\]\[some_shortcode\]

in the editor.

'Next to' means there is no txt/html between them. Remember spaces are stripped, and blank line denotes paragraph, so:

 [some_shortcode]
 [some_shortcode]

Results in the shortcodes being escaped. But,

[some_shortcode]

[some_shortcode]

or

[some_shortcode]{two spaces}
[some_shortcode]

works fine.

The problem is in the HTML -> markdown conversion. That is using the above and saving, will mean the post renders correctly on the front-end, but not in the editor. Saving again without fixing the error it will cause the problems.

@stephenharris

Workaround would be:

<div>
 [some_shortcode][some_shortcode]
</div>
@stephenharris

Fixed with 56ed38d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.