plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Make all compilers support shortcodes

Open ralsina opened this issue 9 years ago • 5 comments

It's a small change on each of:

  • [x] orgmode
  • [x] asciidoc
  • [x] bbcode
  • [x] commonmark
  • [x] kramdown
  • [x] markmin
  • [x] mediawiki
  • [x] misaka
  • [x] mistune
  • [x] odt
  • [ ] rest_html5
  • [x] textile
  • [x] txt2tags
  • [x] wiki
  • [x] ~~wordpress_compiler~~

I have not checked if any of them already do.

ralsina avatar Sep 24 '16 15:09 ralsina

Maybe @felixfontein can do it for wordpress_compiler? It looks complicated and I don't want to break it :-)

ralsina avatar Sep 24 '16 16:09 ralsina

rest_html5 needs some refactoring to match latest rest plugin

ralsina avatar Sep 24 '16 17:09 ralsina

For the wiki compiler, I just added a note that it's not supported.

ralsina avatar Sep 24 '16 17:09 ralsina

Keeping it open for the last few plugins.

ralsina avatar Sep 24 '16 18:09 ralsina

Hmm, I'm kind of skeptical to add shortcode support to the WordPress compiler for two reasons:

  1. it already has support for WordPress shortcodes (like [gallery] and [code]...[/code]), so having a second similar syntax with different (!) shortcodes is kind of confusing; also, adding support for both types requires decisions on how to correctly parse posts which contain both kind of shortcodes;
  2. the main purpose for the compiler is to translate imported existing blog posts. Therefore, I do not want the compiler to recognize a syntax which WordPess doesn't support, and which might be contained in some existing blog posts which suddenly are translated differently.

So if there's ever support for Nikola shortcodes in WordPress posts, there should at least be a global configuration flag which allows to disable this (I'd even tend to enable that flag by default, i.e. you must explicitly enable Nikola shortcodes).

felixfontein avatar Sep 24 '16 20:09 felixfontein