-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shortcodes break markdown code #3
Comments
Hmm, this is because of some 'smarter' regex that has been added to the plugin that is intended to address the issue with markdown and shortcodes mixing. This should only effect block-level items like
i.e. put the shortcode tags on their own line. It should work fine for inline items like |
Well for For
It works fine I'm using the last version |
what is your config for this page? do you have twig enabled? how about twig_first? you didn't answer my question about the parser either. |
Sorry about the parser, it's the default one (Wordpress). I don't use a particular config, it's just a blog post, twig is not enabled, that's just markdown |
I'm unable to recreate, so maybe its one of the many changes i have in the core. I'm hoping to get a release out today. |
Please try again with latest Grav + Shortcode plugin. Shortcode 2.0 is a big revamp and requires the latest Grav release. |
Well, It works for simple text, ie:
|
Ok, here's the problem and i'm not sure if I can fix it, but i have a few simple workarounds.
This is what you are seeing. You are putting However, it will work as long as the
The first four options will work, the last one will not for the reasons provided above.
Anyway, I need to think if this is really solvable, but frankly this is a bit of a corner case. The first two options are simple workarounds though. |
I think I have a fix!!!! see the commit above.. Just a change in the Regex to make it smarter. Give it a try. |
Ok release with this fix is out. |
Wow you've really worked on that, thanks ! Thanks a lot and really nice work ! |
Hello,
Since the last version, you can't use shortcodes around markdown :(
For exemple I often use
[center]
around images like this[center]![My Image](image_src.jpeg)[/center]
. With the last release, this code doesn't work anymore, it just shows![My Image](image_src.jpeg)
as plain text but centered though...Other example
[size=10]_some text_[/size]
renders_some text_
with size 10 but not italic... So the shortcode is rendered but not the markdown...The text was updated successfully, but these errors were encountered: