1
0
peilaus alkaen https://github.com/quitesimpleorg/qsmaddy.git synced 2025-06-26 21:22:05 +02:00

*, + and - are equivalent for making unordered bullet lists as per https://spec-md.com/#sec-Lists

Modified tests and documentation to reflect that.
This commit is contained in:
Martin Kopecky
2020-02-03 22:52:52 +01:00
vanhempi 51d61b68fe
commit cb75226b4a
4 muutettua tiedostoa jossa 20 lisäystä ja 8 poistoa

Näytä tiedosto

@ -54,7 +54,7 @@ public:
static bool
IsStartingLine(const std::string& line)
{
static std::regex re("^[\\*-] .*");
static std::regex re("^[+*-] .*");
return std::regex_match(line, re);
}
@ -89,7 +89,7 @@ protected:
bool isStartOfNewListItem = IsStartingLine(line);
uint32_t indentation = getIndentationWidth(line);
static std::regex lineRegex("^([\\*-] )");
static std::regex lineRegex("^([+*-] )");
line = std::regex_replace(line, lineRegex, "");
if (!this->isStarted)