djm / remark-shortcodes

A custom Markdown syntax parser for remark that adds support for shortcodes.
MIT License
45 stars 7 forks source link

Enclosing shortcodes, feature suggestion. #7

Closed EarthlingDavey closed 4 years ago

EarthlingDavey commented 5 years ago

Is there any plan for enclosing shortcodes? Something like this?

WordPress - Enclosing Shortcodes docs

EarthlingDavey commented 5 years ago

I have built a solution for this, it's a little rough around the edges but please let me know if you'd like a look and I'll create a fork and pull request.

olivierkastel commented 5 years ago

@daveybrown Can you share what you did to solve the problem ?

EarthlingDavey commented 5 years ago

Hi mate, check my 2 recent commits here : https://github.com/daveybrown/remark-shortcodes/commits/enclosing-shortcodes

They should give you something that works, but hasn't been extensively tested. In the end I went with a different solution all together and I'm not using remark on my project, so my recolection of the work is a bit hazy.

It should be self explanatory but give me a shout if you hit a brick wall with it.

Cheers, Davey