1
0
镜像自地址 https://github.com/quitesimpleorg/qsmaddy.git 已同步 2025-09-16 23:36:20 +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.
这个提交包含在:
Martin Kopecky
2020-02-03 22:52:52 +01:00
父节点 51d61b68fe
当前提交 cb75226b4a
共有 4 个文件被更改,包括 20 次插入8 次删除

查看文件

@@ -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)