-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"caps" are not replaced correctly #18
Comments
It seems redcloth has the same problem for the latter case ( |
Yeah, I see this as more of a problem for the spec than it is a problem with this project's implementation. I'd rather keep this consistent with the official version even if it is obviously wrong here. |
How can we disable the fact that caps are replaced by a span ? |
That's pretty easy to accomplish (if not immediately obvious):
That ought to output |
@ikirudennis it works perfectly. Thanks ! |
The last version I used was PyTextile 2.1.4, which did not try to replace caps. Now in version 2.2.2, unexpected HTML conversions occur for text that contains capital letters.
For example, the text "
CFString
" in a textile file becomes "<span class="caps">CFS</span>tring
" in HTML, and "TCP/IP
" becomes "<span class="caps">TCP</span>/IP
".My preference is to have a way to disable this substitution entirely because it is not necessary. Still, the regular expressions could be improved by scanning text beyond an all-caps range; for instance, require all-caps ranges to be immediately followed by spaces or punctuation, and certainly not lowercase letters.
The text was updated successfully, but these errors were encountered: