ReviewNB / support

Issues and feature requests for ReviewNB
https://reviewnb.com
59 stars 8 forks source link

Define order of precedence for nested markdown operators #117

Closed amit1rrr closed 2 years ago

amit1rrr commented 2 years ago

Problem

In ReviewNB comment editor it's impossible to type something like __init__ or **varA** without using GUI buttons. It's because underscores & stars being special markdown characters would take precedence over backticks and make the text bold instead of showing it as an inline code expression.

Solution

We escape special markdown characters (e.g. underscores, stars) when they're typed inside backticks. This way these characters are displayed literally without usual markdown transformation.