demon386/SmartMarkdown

Cannot indent code that contains a pipe "|"

sambody opened this issue · 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.