Change markdown parser.

This commit is contained in:
Black Hat
2019-02-13 16:14:13 +08:00
parent b71359e92a
commit 1d1cd3410a
59 changed files with 5896 additions and 28407 deletions

View File

@@ -20,9 +20,6 @@ isEmpty(USE_SYSTEM_SORTFILTERPROXYMODEL) {
isEmpty(USE_SYSTEM_QMATRIXCLIENT) {
USE_SYSTEM_QMATRIXCLIENT = false
}
isEmpty(USE_SYSTEM_CMARK) {
USE_SYSTEM_CMARK = false
}
isEmpty(BUNDLE_FONT) {
BUNDLE_FONT = false
}
@@ -39,50 +36,27 @@ $$USE_SYSTEM_SORTFILTERPROXYMODEL {
message("Falling back to built-in SortFilterProxyModel.")
include(include/SortFilterProxyModel/SortFilterProxyModel.pri)
}
$$USE_SYSTEM_CMARK {
PKGCONFIG += libcmark
} else {
message("Falling back to built-in CMark.")
INCLUDEPATH += include/cmark
HEADERS += \
include/cmark/buffer.h \
include/cmark/chunk.h \
include/cmark/cmark.h \
include/cmark/cmark_ctype.h \
include/cmark/cmark_export.h \
include/cmark/config.h \
include/cmark/houdini.h \
include/cmark/inlines.h \
include/cmark/iterator.h \
include/cmark/node.h \
include/cmark/parser.h \
include/cmark/references.h \
include/cmark/render.h \
include/cmark/scanners.h \
include/cmark/utf8.h
SOURCES += \
include/cmark/blocks.c \
include/cmark/buffer.c \
include/cmark/cmark.c \
include/cmark/cmark_ctype.c \
include/cmark/commonmark.c \
include/cmark/entities.inc \
include/cmark/houdini_href_e.c \
include/cmark/houdini_html_e.c \
include/cmark/houdini_html_u.c \
include/cmark/html.c \
include/cmark/inlines.c \
include/cmark/iterator.c \
include/cmark/latex.c \
include/cmark/man.c \
include/cmark/node.c \
include/cmark/references.c \
include/cmark/render.c \
include/cmark/scanners.c \
include/cmark/utf8.c \
include/cmark/xml.c
}
INCLUDEPATH += include/hoedown
HEADERS += \
include/hoedown/autolink.h \
include/hoedown/buffer.h \
include/hoedown/document.h \
include/hoedown/escape.h \
include/hoedown/html.h \
include/hoedown/stack.h \
include/hoedown/version.h
SOURCES += \
include/hoedown/autolink.c \
include/hoedown/buffer.c \
include/hoedown/document.c \
include/hoedown/escape.c \
include/hoedown/html.c \
include/hoedown/html_blocks.c \
include/hoedown/html_smartypants.c \
include/hoedown/stack.c \
include/hoedown/version.c
# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked deprecated (the exact warnings