Skip to content

Commit 0f002b4

Browse files
committed
crengine: add markdown support using md4c
1 parent 8018678 commit 0f002b4

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

cmake/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ declare_project(
159159
libunibreak
160160
libwebp
161161
lunasvg
162+
md4c
162163
utf8proc
163164
zlib
164165
zstd

thirdparty/cmake_modules/koreader_thirdparty_libs.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ target_link_libraries(
4646
libpng::png16
4747
libwebp::webpdemux
4848
lunasvg::lunasvg
49+
md4c::html
4950
srell::srell
5051
utf8proc::utf8proc
5152
zlib::z
@@ -155,7 +156,7 @@ endif()
155156
declare_dependency(lunasvg::lunasvg MONOLIBTIC lunasvg)
156157

157158
# md4c
158-
declare_dependency(md4c::html STATIC md4c md4c-html)
159+
declare_dependency(md4c::html STATIC md4c-html md4c)
159160

160161
# mupdf
161162
set(LIBRARIES m)

thirdparty/kpvcrlib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ add_library(crengine STATIC
5555
${CRE_DIR}/src/lvtinydom.cpp
5656
${CRE_DIR}/src/lvxml.cpp
5757
${CRE_DIR}/src/mathml.cpp
58+
${CRE_DIR}/src/mdfmt.cpp
5859
${CRE_DIR}/src/odtfmt.cpp
5960
${CRE_DIR}/src/odxutil.cpp
6061
${CRE_DIR}/src/pdbfmt.cpp

thirdparty/kpvcrlib/crsetup.h.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#define CHM_SUPPORT_ENABLED 1
2121
#define CR3_ANTIWORD_PATCH 1
2222
#define ENABLE_ANTIWORD 1
23+
#define USE_MD4C 1
2324

2425
/// I18N
2526
#define CR_EMULATE_GETTEXT 1

0 commit comments

Comments
 (0)