1
0
şunun yansıması https://github.com/quitesimpleorg/qsmaddy.git eşitlendi 2025-08-13 16:49:53 +02:00

fixed inline code for bold, em and s

In inline code the markdown for bold , emphasized
and strike trhough  is not parsed anymore.

Additionally the linker might be now faster on Linux.
Bu işleme şunda yer alıyor:
M. Petra Baranski
2017-12-25 21:21:59 +01:00
ebeveyn 82b320d967
işleme 91b687d5e7
7 değiştirilmiş dosya ile 52 ekleme ve 4 silme

Dosyayı Görüntüle

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

Dosyayı Görüntüle

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

Dosyayı Görüntüle

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