-
Notifications
You must be signed in to change notification settings - Fork 140
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
New extension: strike through with two tildes #12
Conversation
As this is an extension I could disable this by default and define |
Yes, that would be good. +++ rekado [Oct 26 12 18:38 ]:
|
Done. The extension can be enabled with EXT_STRIKE ( |
I'm reluctant to merge this yet, as it does not implement output for strikeout in all of the output formats supported... |
For LaTeX output the For groff, a macro needs to be defined; I guess this could be output first with
It should be easy to add it to the ODF output, so I'm going to do that first. |
The odf header and footer are added in |
A groff macro is defined to strike through words enclosed in pairs of `~~` when rendering to the Postscript device. The macro doesn't yield suitable results when rendering to any device other than Postscript. As the macro application requires that the string be placed on its own line, leading dots have to be escaped that result from splitting strings like `~~Hello~~. Goodbye` after the last `~~`. Without escaping, the groff output would be .ST "Hello" . Goodbye leading to a failure to process ". Goodbye".
I've added strike-through support for groff output when rendering to the Postscript device; it should also work in edge cases. LaTeX support has also been added. |
Is there anything else in the way of merging this? |
Can latex |
Is the output of |
No, the former. +++ rekado [Mar 28 13 06:37 ]:
|
Well, then it's not going to work. I don't know any (non-hackish) way to strike out text in LaTeX without adding this package, and it would have to be added to the preamble. Do you want me to remove strike-through support for LaTeX then? |
I don't really have much objection to leaving it in, and +++ rekado [Mar 28 13 20:09 ]:
|
The generated LaTeX output is understood to be the document body, so it may not contain macros that belong into the preamble.
I have...
|
New extension: strike through with two tildes
This patch adds support for strike-through markup as used on github.
Example:
This is ~~good~~ bad.
This is
goodbad.