phrozn icon indicating copy to clipboard operation
phrozn copied to clipboard

Code block nukes white space

Open dubcanada opened this issue 11 years ago • 0 comments

Hello,

If I run

{
    "custom_field_redirect_fb": {
        "LONG_MD5_FIELD_ID": {
            "exists": {
                "step": "LONG_MD5_PAGE_ID",
                "page": "LONG_MD5_PAGE_ID"
            },
            "not_exists": {
                "step": "LONG_MD5_PAGE_ID",
                "page": "LONG_MD5_PAGE_ID"
            }
        }
    }
}

Through PHP-MarkDown I get

<p><code>{
    "custom_field_redirect_fb": {
        "LONG_MD5_FIELD_ID": {
            "exists": {
                "step": "LONG_MD5_PAGE_ID",
                "page": "LONG_MD5_PAGE_ID"
            },
            "not_exists": {
                "step": "LONG_MD5_PAGE_ID",
                "page": "LONG_MD5_PAGE_ID"
            }
        }
    }
}</code></p>

Yet when I run it through Phrozn it generates

<p><code>{
"custom_field_redirect_fb": {
"LONG_MD5_FIELD_ID": {
    "exists": {
        "step": "LONG_MD5_PAGE_ID",
        "page": "LONG_MD5_PAGE_ID"
    },
    "not_exists": {
        "step": "LONG_MD5_PAGE_ID",
        "page": "LONG_MD5_PAGE_ID"
    }
}
}
}</code></p>

dubcanada avatar May 30 '14 14:05 dubcanada