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

Cannot escape markdown characters #24

Closed
adam-mcdaniel opened this issue Aug 21, 2020 · 5 comments
Closed

Cannot escape markdown characters #24

adam-mcdaniel opened this issue Aug 21, 2020 · 5 comments

Comments

@adam-mcdaniel
Copy link

I'm using this crate in my compiler to automatically generate documentation, and I've run into an issue where I cannot escape (use as regular characters) * characters, or other characters such as `. We've tried \*, \\*, and \\\*, and nothing works. Is there a way to display asterisks and other markdown command characters?

@Canop
Copy link
Owner

Canop commented Aug 21, 2020

What kind of generation are you doing ? The normal way is to use templates

@adam-mcdaniel
Copy link
Author

adam-mcdaniel commented Aug 22, 2020

I'm just printing a string containing valid markdown using the .term_text method.

@Canop
Copy link
Owner

Canop commented Aug 22, 2020

I should support escaping with backslash.

@adam-mcdaniel
Copy link
Author

It doesnt work for me. Whenever I use an escaped * character, it always just displays the backslash and makes the rest of the line italics.

@Canop
Copy link
Owner

Canop commented Aug 28, 2020

@adam-mcdaniel I confirm I didn't implement backslash escaping

@Canop Canop closed this as completed in 185b15a Feb 15, 2021
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

2 participants