SmartMarkdown icon indicating copy to clipboard operation
SmartMarkdown copied to clipboard

Cannot indent code that contains a pipe "|"

Open sambody opened this issue 9 years ago • 0 comments

When I try to indent a whole code block that contains a "|", the indentation doesn't happen. Nothing happens. Example code:

    // Shortcode for custom language selector
    // Use: [custom_lang_selector]
    function dfx_wpml_custom_language_selector(){
        do_action(' dfx_lang_switcher("fr,nl,en"," | ") ');
    }
    add_shortcode( 'custom_lang_selector', 'dfx_wpml_custom_language_selector' );

Worse, when I try to indent only the line that contains the "|" (line 4 in this case), most of the code is removed. To me it looks like a bug. Maybe an incompatibility with the tables functionality.

Deactivating SmartMarkdown restores the possibilitly of indenting normally.

sambody avatar Jun 23 '16 15:06 sambody