Re: Creole markup strikethrough
- Posted by jimcbrown (admin) Dec 21, 2012
- 2246 views
I was the one that implemented, and designed the extensions, to the creole parser we have here are OpenEuphoria. One of those extensions is strikethru rendering. The published Creole specification does not include strikethru, I decided that it was an omission (other markups have it) and that it was easy to do. I decided on the double dash '--' token because it is used in some other wikis and seemed fairly obvious/intuitive.
This makes a lot of sense to me. I find the logic here very agreeable.
Still, I don't recall that we voted on or even discussed this particular component before we adopted your Creole engine.
Assuming that's true, it means that we might end up going back and revisiting certain decisions as time goes on and minor issues crop up here and there.
Remember that Creole has nothing to do with Euphoria. It is a general purpose markup language that can be used for multiple purposes. The fact that Euphoria's comments begin with a double dash is a coincidence.
Oh, and by the way, you can 'escape' the strikethru effect by preceding a double-dash with a tilde, such as ~--, which causes the strikethru to be avoided.
Agreed, and the fact that the double dash is also used to pass in GNU-style long parameter names is another coincidence.
Still, even though the origins of the usage of the double dash are unrelated, the end result can be confusing. What is the probability that someone who uses the double dash intends it to represent a GNU-style long parameter, an Euphorian comment, a strikethru, or something else?
If the usage of strikethru on this forum is very low, then maybe it is ok to breka with other (presumbly non-Creole) wikis and use a more obscure token for it.
The creole parser has the facility to disallow strikethru (and any of the other text decoration styles). This is set by a specific call to the parser from the hosting environment, but this hasn't be used by the EuForum application.
Eg.
creole_parse(Disallow, MU_Strikethru)
Shouldn't it have the facility to change the strikethru character as well?