You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, guys. I had a user file an issue regarding the handling of the text-alignment shortcuts in restricted mode. For example, running the examples on https://txstyle.org/doc/24/text-alignment through python-textile, the output is essentially the same as just running the raw text through a html-entity encoder: the angle brackets are turned into their < and > counterparts, and the paragraph p tags are not handled. I created a quick test for php-textile, and it results in a fatal error:
Stack trace:
#0 /.../php-textile/src/Netcarver/Textile/Parser.php(1994): Netcarver\Textile\Parser->parseAttribsToArray('<', '', true, '')#1 /.../php-textile/src/Netcarver/Textile/Parser.php(2842): Netcarver\Textile\Parser->parseAttribs('<')#2 /.../php-textile/src/Netcarver/Textile/Parser.php(2776): Netcarver\Textile\Parser->fBlock(Array)#3 /.../php-textile/src/Netcarver/Textile/Parser.php(1590): Netcarver\Textile\Parser->blocks('p<. Left ali...')#4 /.../php-textile/src/test.php(9): Netcarver\Textile\Parser->parse('p<. Left ali...')#5 {main}
thrown in /.../php-textile/src/Netcarver/Textile/Parser.php on line 2115
So this raises the question of: How should text-alignment be handled in restricted mode?
The text was updated successfully, but these errors were encountered:
@ikirudennis Hello Dennis, good question and good find.
As restricted mode was really meant for application to comments left of sites, I don't really think the commentators should be able to leave layout hints like this. My vote is for stripping the paragraph alignment out in restricted mode.
Hi, guys. I had a user file an issue regarding the handling of the text-alignment shortcuts in restricted mode. For example, running the examples on https://txstyle.org/doc/24/text-alignment through python-textile, the output is essentially the same as just running the raw text through a html-entity encoder: the angle brackets are turned into their
<
and>
counterparts, and the paragraphp
tags are not handled. I created a quick test for php-textile, and it results in a fatal error:So this raises the question of: How should text-alignment be handled in restricted mode?
The text was updated successfully, but these errors were encountered: