shanxp / asciidoc

Automatically exported from code.google.com/p/asciidoc
GNU General Public License v2.0
0 stars 0 forks source link

Add plus replacement to intrinsic attributes #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The symbol + can be problematic when it occurs in inline text. While there are 
other ways to escape it, it seems to be a good candidate as an intrinsic 
attribute for the same reason several of the others (e.g., two-colons, 
two-semicolons, etc) where selected.

This issue is a feature request to add the following attribute definition to 
asciidoc.conf

[attributes]
plus=+

This can be used inline as {plus}.

...which would render:

This can be used inline as +.

Original issue reported on code.google.com by dan.j.allen on 14 Dec 2012 at 8:49

GoogleCodeExporter commented 8 years ago
plus=+ won't work due to the substitution order, I've added plus=+
See 
https://code.google.com/p/asciidoc/source/detail?r=52072cf4b75d016ea9e30c56ef21d
d747663c913

Original comment by srack...@gmail.com on 31 Dec 2012 at 4:43

GoogleCodeExporter commented 8 years ago
Ah, of course! (I was just studying substitution rules today, in fact). Nice 
solution. Thanks!

Original comment by dan.j.allen on 31 Dec 2012 at 10:47