Closed bobbingwide closed 6 years ago
Note: The tests are currently dependent upon oik-ajax being activated. A change to oik-ajax will help remove this dependency. See https://github.com/bobbingwide/oik-ajax/issues/1
The code’s been developed. The examples are not yet on oik-plugins.com. They’ll need to be cloned from the local development when the new version is available.
For the
[bw_geshi]
shortcode when thelang=
parameter is a certain value we need to undo some of the processing performed by other filters attached tothe_content
. For some languages this means eliminating unwanted paragraphs and breaks.This is not the case for
html
andhtml5
.We also have ‘none’, which is intended for formatting examples of shortcodes.
Expected output
Actual output
Notes:
lang=html
. This is a bug.lang=html5
the tags are linked to December.com. We don’t want them, so they need to be disabled using$geshi->enable_keyword_links(false);
. See #8Proposed solution
html
andhtml5
.lang=none
html5
should be listed in the options for thelang=
parameter.Note: It may be necessary to revisit the hooks attached to
the_content
and other places where the shortcode may be expanded. Basically, we don’t want any wpautop logic applied to the content between [bw_geshi] and [/bw_geshi].