Skip to content

Commit

Permalink
crengine: add markdown support using md4c
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored and Frenzie committed Nov 30, 2024
1 parent 4d3396f commit a0f1a5f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ declare_project(
libunibreak
libwebp
lunasvg
md4c
utf8proc
zlib
zstd
Expand Down
3 changes: 2 additions & 1 deletion thirdparty/cmake_modules/koreader_thirdparty_libs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ target_link_libraries(
libpng::png16
libwebp::webpdemux
lunasvg::lunasvg
md4c::html
srell::srell
utf8proc::utf8proc
zlib::z
Expand Down Expand Up @@ -155,7 +156,7 @@ endif()
declare_dependency(lunasvg::lunasvg MONOLIBTIC lunasvg)

# md4c
declare_dependency(md4c::html STATIC md4c md4c-html)
declare_dependency(md4c::html STATIC md4c-html md4c)

# mupdf
set(LIBRARIES m)
Expand Down
1 change: 1 addition & 0 deletions thirdparty/kpvcrlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ add_library(crengine STATIC
${CRE_DIR}/src/lvtinydom.cpp
${CRE_DIR}/src/lvxml.cpp
${CRE_DIR}/src/mathml.cpp
${CRE_DIR}/src/mdfmt.cpp
${CRE_DIR}/src/odtfmt.cpp
${CRE_DIR}/src/odxutil.cpp
${CRE_DIR}/src/pdbfmt.cpp
Expand Down
1 change: 1 addition & 0 deletions thirdparty/kpvcrlib/crsetup.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#define CHM_SUPPORT_ENABLED 1
#define CR3_ANTIWORD_PATCH 1
#define ENABLE_ANTIWORD 1
#define USE_MD4C 1

/// I18N
#define CR_EMULATE_GETTEXT 1
Expand Down

0 comments on commit a0f1a5f

Please sign in to comment.