1
0
réplica de https://github.com/quitesimpleorg/qsmaddy.git sincronizado 2024-11-21 15:17:52 +01:00

emphasizedparser: Underscore does not need backslash

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Este cometimento está contido em:
Patrick José Pereira 2018-10-25 14:47:52 -03:00
ascendente 7c26aa0431
cometimento a84da9de61

Ver ficheiro

@ -41,7 +41,7 @@ public:
void
Parse(std::string& line) override
{
static std::regex re("(?!.*`.*|.*<code>.*)\\_(?!.*`.*|.*<\\/code>.*)([^\\_]*)\\_(?!.*`.*|.*<\\/code>.*)");
static std::regex re("(?!.*`.*|.*<code>.*)_(?!.*`.*|.*<\\/code>.*)([^_]*)_(?!.*`.*|.*<\\/code>.*)");
static std::string replacement = "<em>$1</em>";
line = std::regex_replace(line, re, replacement);