Canop/termimad

Cannot escape markdown characters

adam-mcdaniel opened this issue · 5 comments

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 commented

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

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

Canop commented

I should support escaping with backslash.

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 commented

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