1 hour ago · Tech · 0 comments

Yesterday, I already had a strong gut feeling that combining my custom-made PmWiki markup with the original built-in PmWiki markup is not that easy. Turns out, it’s true. Ctify_ v26.6.2 has this specific bug regarding the recently added “foldered preformatted text block” functionality.In short, you can’t simply wrap the main text with `<pre class=’escaped’></pre>` and expect it to be escaped, because PmWiki will internally preprocess that text first instead of leaving it raw.So today, I noticed that for every newline in the main text, PmWiki replaces it with this `<:vspace>` tag. Later, this `vspace` tag -- and its CSS class -- causes it to appear “bigger than the usual newline”, something affected by either `margin-top` CSS or `padding-top` CSS. Ruining the aesthetics that I personally prefer.So, I wish I could skip this PmWiki preprocessing code and make it show the good old newline.But this preprocessing code is buried deep within `scripts/stdmarkup.php`. It’s not the usual…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.