Skip to content
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

Escaping '*' in verbatim blocks #49

Open
dajva opened this issue Oct 2, 2019 · 0 comments
Open

Escaping '*' in verbatim blocks #49

dajva opened this issue Oct 2, 2019 · 0 comments

Comments

@dajva
Copy link
Contributor

dajva commented Oct 2, 2019

Thanks for a great package.
In verbatim org blocks, consecutive * from start of the string becomes escaped when converting it to restrucured text.
Examples:

=* foo *= -> ``\* foo *``
=** foo *= -> ``\*\* foo *``

What is the background if this behavior? I don't know restructured text very well but using sphinx to export it to other formats preserve the backslash.
I'd like to have literal * in verbatim blocks but can't figure out how to do that.

Looking at the regexp in the code it confirms this behavior:

(string-match "\\`*" text)

I've been trying to avoid this issue by using this instead but not sure if it's what is intended:

(string-match "`+" text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant