Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[SOLVED] Buggy Textile (uppercase)
When a word in capital letters is enclosed in parentheses, Textile omits the closing span
tag, e. g. (ISSN 2410-7190):
(<span class="caps">ISSN</span> 2410-7190)
Tested on Textile-lang.com, too.
How to disable completely this feature in the parser?
Offline
Re: [SOLVED] Buggy Textile (uppercase)
Am I missing or misunderstanding something here ? As far as I can see, it works correctly, the string ISSN
is wrapped in a pair of open/close <span />
, as expected.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: [SOLVED] Buggy Textile (uppercase)
If you’d like to remove that span
, then in Textpattern 4.8.4 you can modify this file:
textpattern\vendors\Netcarver\Textile\Parser.php
Then just search for <span class="caps">
inside the file, and remove the opening and closing tag.
Offline
Re: [SOLVED] Buggy Textile (uppercase)
Yep, what they said. Unless I’m missing something, that’s expected behaviour. It wraps <span class="caps">...</span>
around just the uppercase letters. It’s not looking for numbers or brackets or anything else, just strings of 3 or more capital letters to wrap.
Last edited by Bloke (2020-12-28 14:47:36)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: [SOLVED] Buggy Textile (uppercase)
Oh, pardon, I am overlooked something, please excuse me and ignore this false-alarm post.
Offline