commonmarker 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of commonmarker might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +23 -17
- data/ext/commonmarker/cmark/CMakeLists.txt +1 -1
- data/ext/commonmarker/cmark/Makefile +13 -14
- data/ext/commonmarker/cmark/README.md +1 -0
- data/ext/commonmarker/cmark/api_test/cplusplus.h +1 -2
- data/ext/commonmarker/cmark/api_test/harness.c +60 -79
- data/ext/commonmarker/cmark/api_test/harness.h +13 -20
- data/ext/commonmarker/cmark/api_test/main.c +809 -714
- data/ext/commonmarker/cmark/build/CMakeCache.txt +3 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/Makefile.cmake +0 -67
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/build.make +1 -1
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/link.txt +1 -1
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/DependInfo.cmake +1 -1
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/build.make +23 -23
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmake_clean.cmake +1 -1
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/link.txt +1 -1
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/blocks.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark_ctype.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/commonmark.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/html.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/inlines.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/iterator.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/latex.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/man.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/node.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/render.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/scanners.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/xml.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/cmake_install.cmake +10 -2
- data/ext/commonmarker/cmark/build/src/cmark_version.h +2 -2
- data/ext/commonmarker/cmark/build/src/libcmark.a +0 -0
- data/ext/commonmarker/cmark/build/src/libcmark.pc +1 -1
- data/ext/commonmarker/cmark/build/testdir/CTestTestfile.cmake +1 -0
- data/ext/commonmarker/cmark/changelog.txt +85 -0
- data/ext/commonmarker/cmark/man/man3/cmark.3 +75 -34
- data/ext/commonmarker/cmark/src/CMakeLists.txt +13 -8
- data/ext/commonmarker/cmark/src/blocks.c +78 -70
- data/ext/commonmarker/cmark/src/chunk.h +5 -7
- data/ext/commonmarker/cmark/src/cmark.h +88 -34
- data/ext/commonmarker/cmark/src/cmark_ctype.c +6 -6
- data/ext/commonmarker/cmark/src/commonmark.c +24 -8
- data/ext/commonmarker/cmark/src/houdini_html_u.c +6 -5
- data/ext/commonmarker/cmark/src/html.c +33 -11
- data/ext/commonmarker/cmark/src/inlines.c +9 -10
- data/ext/commonmarker/cmark/src/iterator.c +2 -2
- data/ext/commonmarker/cmark/src/latex.c +54 -28
- data/ext/commonmarker/cmark/src/main.c +0 -9
- data/ext/commonmarker/cmark/src/man.c +17 -5
- data/ext/commonmarker/cmark/src/node.c +123 -44
- data/ext/commonmarker/cmark/src/node.h +8 -2
- data/ext/commonmarker/cmark/src/render.c +8 -1
- data/ext/commonmarker/cmark/src/render.h +1 -0
- data/ext/commonmarker/cmark/src/scanners.c +3755 -4379
- data/ext/commonmarker/cmark/src/scanners.h +7 -6
- data/ext/commonmarker/cmark/src/scanners.re +9 -10
- data/ext/commonmarker/cmark/src/utf8.c +6 -3
- data/ext/commonmarker/cmark/src/utf8.h +4 -2
- data/ext/commonmarker/cmark/src/xml.c +18 -4
- data/ext/commonmarker/cmark/test/CMakeLists.txt +11 -0
- data/ext/commonmarker/cmark/test/normalize.py +5 -1
- data/ext/commonmarker/cmark/test/roundtrip.bat +1 -0
- data/ext/commonmarker/cmark/test/roundtrip.sh +1 -1
- data/ext/commonmarker/cmark/test/spec.txt +257 -157
- data/ext/commonmarker/cmark/why-cmark-and-not-x.md +104 -0
- data/lib/commonmarker/config.rb +6 -6
- data/lib/commonmarker/version.rb +1 -1
- metadata +5 -5
- data/ext/commonmarker/cmark/src/bench.h +0 -27
- data/ext/commonmarker/cmark/wrappers/wrapper.lua +0 -239
@@ -188,6 +188,9 @@ CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
|
|
188
188
|
//Build cmark tests and enable testing
|
189
189
|
CMARK_TESTS:BOOL=ON
|
190
190
|
|
191
|
+
//Set the installation directory for libraries.
|
192
|
+
LIB_INSTALL_DIR:STRING=lib
|
193
|
+
|
191
194
|
//Missing description
|
192
195
|
PYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python3
|
193
196
|
|
@@ -13,40 +13,20 @@ set(CMAKE_MAKEFILE_DEPENDS
|
|
13
13
|
"CMakeFiles/3.3.2/CMakeCCompiler.cmake"
|
14
14
|
"CMakeFiles/3.3.2/CMakeCXXCompiler.cmake"
|
15
15
|
"CMakeFiles/3.3.2/CMakeSystem.cmake"
|
16
|
-
"CMakeFiles/feature_tests.c"
|
17
|
-
"CMakeFiles/feature_tests.cxx"
|
18
16
|
"../man/CMakeLists.txt"
|
19
17
|
"../src/CMakeLists.txt"
|
20
18
|
"../src/cmark_version.h.in"
|
21
19
|
"../src/config.h.in"
|
22
20
|
"../src/libcmark.pc.in"
|
23
21
|
"../test/CMakeLists.txt"
|
24
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeCCompiler.cmake.in"
|
25
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeCCompilerABI.c"
|
26
22
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeCInformation.cmake"
|
27
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeCXXCompiler.cmake.in"
|
28
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeCXXCompilerABI.cpp"
|
29
23
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeCXXInformation.cmake"
|
30
24
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake"
|
31
25
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeCommonLanguageInclude.cmake"
|
32
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeCompilerIdDetection.cmake"
|
33
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeDetermineCCompiler.cmake"
|
34
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake"
|
35
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeDetermineCompileFeatures.cmake"
|
36
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeDetermineCompiler.cmake"
|
37
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeDetermineCompilerABI.cmake"
|
38
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeDetermineCompilerId.cmake"
|
39
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeDetermineSystem.cmake"
|
40
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeFindBinUtils.cmake"
|
41
26
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeGenericSystem.cmake"
|
42
27
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeParseArguments.cmake"
|
43
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeParseImplicitLinkInfo.cmake"
|
44
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeSystem.cmake.in"
|
45
28
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeSystemSpecificInformation.cmake"
|
46
29
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake"
|
47
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeTestCCompiler.cmake"
|
48
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeTestCXXCompiler.cmake"
|
49
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeTestCompilerCommon.cmake"
|
50
30
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CheckCCompilerFlag.cmake"
|
51
31
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CheckCSourceCompiles.cmake"
|
52
32
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CheckCSourceRuns.cmake"
|
@@ -54,59 +34,17 @@ set(CMAKE_MAKEFILE_DEPENDS
|
|
54
34
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CheckCXXSourceCompiles.cmake"
|
55
35
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CheckIncludeFile.cmake"
|
56
36
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CheckSymbolExists.cmake"
|
57
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/ADSP-DetermineCompiler.cmake"
|
58
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/AppleClang-C-FeatureTests.cmake"
|
59
37
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/AppleClang-C.cmake"
|
60
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/AppleClang-CXX-FeatureTests.cmake"
|
61
38
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/AppleClang-CXX.cmake"
|
62
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/AppleClang-DetermineCompiler.cmake"
|
63
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Borland-DetermineCompiler.cmake"
|
64
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Clang-CXX-TestableFeatures.cmake"
|
65
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Clang-DetermineCompiler.cmake"
|
66
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"
|
67
39
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Clang.cmake"
|
68
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake"
|
69
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Compaq-C-DetermineCompiler.cmake"
|
70
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake"
|
71
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Cray-DetermineCompiler.cmake"
|
72
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"
|
73
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"
|
74
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/GHS-DetermineCompiler.cmake"
|
75
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/GNU-DetermineCompiler.cmake"
|
76
40
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/GNU.cmake"
|
77
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/HP-C-DetermineCompiler.cmake"
|
78
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/HP-CXX-DetermineCompiler.cmake"
|
79
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/IAR-DetermineCompiler.cmake"
|
80
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"
|
81
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"
|
82
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Intel-DetermineCompiler.cmake"
|
83
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/MIPSpro-DetermineCompiler.cmake"
|
84
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/MSVC-DetermineCompiler.cmake"
|
85
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"
|
86
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/PGI-DetermineCompiler.cmake"
|
87
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/PathScale-DetermineCompiler.cmake"
|
88
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/SCO-DetermineCompiler.cmake"
|
89
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/SDCC-C-DetermineCompiler.cmake"
|
90
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/SunPro-C-DetermineCompiler.cmake"
|
91
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake"
|
92
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/TI-DetermineCompiler.cmake"
|
93
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake"
|
94
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake"
|
95
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake"
|
96
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/Watcom-DetermineCompiler.cmake"
|
97
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/XL-C-DetermineCompiler.cmake"
|
98
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/XL-CXX-DetermineCompiler.cmake"
|
99
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/zOS-C-DetermineCompiler.cmake"
|
100
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake"
|
101
41
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake"
|
102
42
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindPackageMessage.cmake"
|
103
43
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindPythonInterp.cmake"
|
104
44
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/GenerateExportHeader.cmake"
|
105
45
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/InstallRequiredSystemLibraries.cmake"
|
106
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Internal/FeatureTesting.cmake"
|
107
46
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Platform/Darwin-AppleClang-C.cmake"
|
108
47
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Platform/Darwin-AppleClang-CXX.cmake"
|
109
|
-
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Platform/Darwin-CXX.cmake"
|
110
48
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Platform/Darwin-Clang-C.cmake"
|
111
49
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Platform/Darwin-Clang-CXX.cmake"
|
112
50
|
"/usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/Platform/Darwin-Clang.cmake"
|
@@ -124,11 +62,6 @@ set(CMAKE_MAKEFILE_OUTPUTS
|
|
124
62
|
|
125
63
|
# Byproducts of CMake generate step:
|
126
64
|
set(CMAKE_MAKEFILE_PRODUCTS
|
127
|
-
"CMakeFiles/3.3.2/CMakeSystem.cmake"
|
128
|
-
"CMakeFiles/3.3.2/CMakeCCompiler.cmake"
|
129
|
-
"CMakeFiles/3.3.2/CMakeCXXCompiler.cmake"
|
130
|
-
"CMakeFiles/3.3.2/CMakeCCompiler.cmake"
|
131
|
-
"CMakeFiles/3.3.2/CMakeCXXCompiler.cmake"
|
132
65
|
"CMakeFiles/CMakeDirectoryInformation.cmake"
|
133
66
|
"src/CMakeFiles/CMakeDirectoryInformation.cmake"
|
134
67
|
"api_test/CMakeFiles/CMakeDirectoryInformation.cmake"
|
@@ -142,7 +142,7 @@ api_test/api_test: api_test/CMakeFiles/api_test.dir/cplusplus.cpp.o
|
|
142
142
|
api_test/api_test: api_test/CMakeFiles/api_test.dir/harness.c.o
|
143
143
|
api_test/api_test: api_test/CMakeFiles/api_test.dir/main.c.o
|
144
144
|
api_test/api_test: api_test/CMakeFiles/api_test.dir/build.make
|
145
|
-
api_test/api_test: src/libcmark.0.
|
145
|
+
api_test/api_test: src/libcmark.0.23.0.dylib
|
146
146
|
api_test/api_test: api_test/CMakeFiles/api_test.dir/link.txt
|
147
147
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Linking CXX executable api_test"
|
148
148
|
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/api_test && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/api_test.dir/link.txt --verbose=$(VERBOSE)
|
@@ -1 +1 @@
|
|
1
|
-
/usr/bin/c++ -O3 -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/lib CMakeFiles/api_test.dir/cplusplus.cpp.o CMakeFiles/api_test.dir/harness.c.o CMakeFiles/api_test.dir/main.c.o -o api_test ../src/libcmark.0.
|
1
|
+
/usr/bin/c++ -O3 -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/lib CMakeFiles/api_test.dir/cplusplus.cpp.o CMakeFiles/api_test.dir/harness.c.o CMakeFiles/api_test.dir/main.c.o -o api_test ../src/libcmark.0.23.0.dylib -Wl,-rpath,/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src
|
@@ -34,7 +34,7 @@ set(CMAKE_C_TARGET_INCLUDE_PATH
|
|
34
34
|
|
35
35
|
# Pairs of files generated by the same build rule.
|
36
36
|
set(CMAKE_MULTIPLE_OUTPUT_PAIRS
|
37
|
-
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.dylib" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.0.
|
37
|
+
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.dylib" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.0.23.0.dylib"
|
38
38
|
)
|
39
39
|
|
40
40
|
|
@@ -538,32 +538,32 @@ libcmark_OBJECTS = \
|
|
538
538
|
# External object files for target libcmark
|
539
539
|
libcmark_EXTERNAL_OBJECTS =
|
540
540
|
|
541
|
-
src/libcmark.0.
|
542
|
-
src/libcmark.0.
|
543
|
-
src/libcmark.0.
|
544
|
-
src/libcmark.0.
|
545
|
-
src/libcmark.0.
|
546
|
-
src/libcmark.0.
|
547
|
-
src/libcmark.0.
|
548
|
-
src/libcmark.0.
|
549
|
-
src/libcmark.0.
|
550
|
-
src/libcmark.0.
|
551
|
-
src/libcmark.0.
|
552
|
-
src/libcmark.0.
|
553
|
-
src/libcmark.0.
|
554
|
-
src/libcmark.0.
|
555
|
-
src/libcmark.0.
|
556
|
-
src/libcmark.0.
|
557
|
-
src/libcmark.0.
|
558
|
-
src/libcmark.0.
|
559
|
-
src/libcmark.0.
|
560
|
-
src/libcmark.0.
|
561
|
-
src/libcmark.0.
|
541
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/cmark.c.o
|
542
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/node.c.o
|
543
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/iterator.c.o
|
544
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/blocks.c.o
|
545
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/inlines.c.o
|
546
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/scanners.c.o
|
547
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/utf8.c.o
|
548
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/buffer.c.o
|
549
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/references.c.o
|
550
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/render.c.o
|
551
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/man.c.o
|
552
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/xml.c.o
|
553
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/html.c.o
|
554
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/commonmark.c.o
|
555
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/latex.c.o
|
556
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/houdini_href_e.c.o
|
557
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/houdini_html_e.c.o
|
558
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/houdini_html_u.c.o
|
559
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/cmark_ctype.c.o
|
560
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/build.make
|
561
|
+
src/libcmark.0.23.0.dylib: src/CMakeFiles/libcmark.dir/link.txt
|
562
562
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_20) "Linking C shared library libcmark.dylib"
|
563
563
|
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/libcmark.dir/link.txt --verbose=$(VERBOSE)
|
564
|
-
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src && $(CMAKE_COMMAND) -E cmake_symlink_library libcmark.0.
|
564
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src && $(CMAKE_COMMAND) -E cmake_symlink_library libcmark.0.23.0.dylib libcmark.0.23.0.dylib libcmark.dylib
|
565
565
|
|
566
|
-
src/libcmark.dylib: src/libcmark.0.
|
566
|
+
src/libcmark.dylib: src/libcmark.0.23.0.dylib
|
567
567
|
@$(CMAKE_COMMAND) -E touch_nocreate src/libcmark.dylib
|
568
568
|
|
569
569
|
# Rule to build all files generated by this target.
|
@@ -1 +1 @@
|
|
1
|
-
/usr/bin/cc -fPIC -fvisibility=hidden -Wall -Wextra -std=c99 -pedantic -O3 -DNDEBUG -dynamiclib -Wl,-headerpad_max_install_names -L/usr/local/lib -compatibility_version 0.
|
1
|
+
/usr/bin/cc -fPIC -fvisibility=hidden -Wall -Wextra -std=c99 -pedantic -O3 -DNDEBUG -dynamiclib -Wl,-headerpad_max_install_names -L/usr/local/lib -compatibility_version 0.23.0 -current_version 0.23.0 -o libcmark.0.23.0.dylib -install_name @rpath/libcmark.0.23.0.dylib CMakeFiles/libcmark.dir/cmark.c.o CMakeFiles/libcmark.dir/node.c.o CMakeFiles/libcmark.dir/iterator.c.o CMakeFiles/libcmark.dir/blocks.c.o CMakeFiles/libcmark.dir/inlines.c.o CMakeFiles/libcmark.dir/scanners.c.o CMakeFiles/libcmark.dir/utf8.c.o CMakeFiles/libcmark.dir/buffer.c.o CMakeFiles/libcmark.dir/references.c.o CMakeFiles/libcmark.dir/render.c.o CMakeFiles/libcmark.dir/man.c.o CMakeFiles/libcmark.dir/xml.c.o CMakeFiles/libcmark.dir/html.c.o CMakeFiles/libcmark.dir/commonmark.c.o CMakeFiles/libcmark.dir/latex.c.o CMakeFiles/libcmark.dir/houdini_href_e.c.o CMakeFiles/libcmark.dir/houdini_html_e.c.o CMakeFiles/libcmark.dir/houdini_html_u.c.o CMakeFiles/libcmark.dir/cmark_ctype.c.o
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -43,11 +43,11 @@ endif()
|
|
43
43
|
|
44
44
|
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
45
45
|
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES
|
46
|
-
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.0.
|
46
|
+
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.0.23.0.dylib"
|
47
47
|
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.dylib"
|
48
48
|
)
|
49
49
|
foreach(file
|
50
|
-
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcmark.0.
|
50
|
+
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcmark.0.23.0.dylib"
|
51
51
|
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcmark.dylib"
|
52
52
|
)
|
53
53
|
if(EXISTS "${file}" AND
|
@@ -59,6 +59,14 @@ if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspeci
|
|
59
59
|
endforeach()
|
60
60
|
endif()
|
61
61
|
|
62
|
+
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
63
|
+
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.a")
|
64
|
+
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcmark.a" AND
|
65
|
+
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcmark.a")
|
66
|
+
execute_process(COMMAND "/usr/bin/ranlib" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcmark.a")
|
67
|
+
endif()
|
68
|
+
endif()
|
69
|
+
|
62
70
|
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
63
71
|
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES
|
64
72
|
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/src/cmark.h"
|
Binary file
|
@@ -10,3 +10,4 @@ add_test(spectest_library "/usr/local/bin/python3" "/Users/gjtorikian/Developmen
|
|
10
10
|
add_test(pathological_tests_library "/usr/local/bin/python3" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/pathological_tests.py" "--library-dir" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/testdir/../src")
|
11
11
|
add_test(spectest_executable "/usr/local/bin/python3" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec.txt" "--program" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/testdir/../src/cmark")
|
12
12
|
add_test(smartpuncttest_executable "/usr/local/bin/python3" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/smart_punct.txt" "--program" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/testdir/../src/cmark --smart")
|
13
|
+
add_test(roundtriptest_executable "/usr/local/bin/python3" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec.txt" "--program" " /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/testdir/../src/cmark")
|
@@ -1,3 +1,88 @@
|
|
1
|
+
[0.23.0]
|
2
|
+
|
3
|
+
* [API change] Added `CUSTOM_BLOCK` and `CUSTOM_INLINE` node types.
|
4
|
+
They are never generated by the parser, and do not correspond
|
5
|
+
to CommonMark elements. They are designed to be inserted by
|
6
|
+
filters that postprocess the AST. For example, a filter might
|
7
|
+
convert specially marked code blocks to svg diagrams in HTML
|
8
|
+
and tikz diagrams in LaTeX, passing these through to the renderer
|
9
|
+
as a `CUSTOM_BLOCK`. These nodes can have children, but they
|
10
|
+
also have literal text to be printed by the renderer "on enter"
|
11
|
+
and "on exit." Added `cmark_node_get_on_enter`,
|
12
|
+
`cmark_node_set_on_enter`, `cmark_node_get_on_exit`,
|
13
|
+
`cmark_node_set_on_exit` to API.
|
14
|
+
* [API change] Rename `NODE_HTML` -> `NODE_HTML_BLOCK`,
|
15
|
+
`NODE_INLINE_HTML` -> `NODE_HTML_INLINE`. Define aliases
|
16
|
+
so the old names still work, for backwards compatibility.
|
17
|
+
* [API change] Rename `CMARK_NODE_HEADER` -> `CMARK_NODE_HEADING`.
|
18
|
+
Note that for backwards compatibility, we have defined aliases:
|
19
|
+
`CMARK_NODE_HEADER` = `CMARK_NODE_HEADING`,
|
20
|
+
`cmark_node_get_header_level` = `cmark_node_get_heading_level`, and
|
21
|
+
`cmark_node_set_header_level` = `cmark_node_set_heading_level`.
|
22
|
+
* [API change] Rename `CMARK_NODE_HRULE` -> `CMARK_NODE_THEMATIC_BREAK`.
|
23
|
+
Defined the former as the latter for backwards compatibility.
|
24
|
+
* Don't allow space between link text and link label in a reference link
|
25
|
+
(spec change).
|
26
|
+
* Separate parsing and rendering opts in `cmark.h` (#88).
|
27
|
+
This change also changes some of these constants' numerical values,
|
28
|
+
but nothing should change in the API if you use the constants
|
29
|
+
themselves. It should now be clear in the man page which
|
30
|
+
options affect parsing and which affect rendering.
|
31
|
+
* xml renderer - Added xmlns attribute to document node (jgm/CommonMark#87).
|
32
|
+
* Commonmark renderer: ensure html blocks surrounded by blanks.
|
33
|
+
Otherwise we get failures of roundtrip tests.
|
34
|
+
* Commonmark renderer: ensure that literal characters get escaped
|
35
|
+
when they're at the beginning of a block, e.g. `> \- foo`.
|
36
|
+
* LaTeX renderer - better handling of internal links.
|
37
|
+
Now we render `[foo](#bar)` as `\protect\hyperlink{bar}{foo}`.
|
38
|
+
* Check for NULL pointer in _scan_at (#81).
|
39
|
+
* `Makefile.nmake`: be more robust when cmake is missing. Previously,
|
40
|
+
when cmake was missing, the build dir would be created anyway, and
|
41
|
+
subsequent attempts (even with cmake) would fail, because cmake would
|
42
|
+
not be run. Depending on `build/CMakeFiles` is more robust -- this won't
|
43
|
+
be created unless cmake is run. Partially addresses #85.
|
44
|
+
* Fixed DOCTYPE in xml output.
|
45
|
+
* commonmark.c: fix `size_t` to `int`. This fixes an MSVC warning
|
46
|
+
"conversion from 'size_t' to 'int', possible loss of data" (Kevin Wojniak).
|
47
|
+
* Correct string length in `cmark_parse_document` example (Lee Jeffery).
|
48
|
+
* Fix non-ASCII end-of-line character check (andyuhnak).
|
49
|
+
* Fix "declaration shadows a local variable" (Kevin Wojniak).
|
50
|
+
* Install static library (jgm/CommonMark#381).
|
51
|
+
* Fix warnings about dropping const qualifier (Kevin Wojniak).
|
52
|
+
* Use full (unabbreviated) versions of constants (`CMARK_...`).
|
53
|
+
* Removed outdated targets from Makefile.
|
54
|
+
* Removed need for sudo in `make bench`.
|
55
|
+
* Improved benchmark. Use longer test, since `time` has limited resolution.
|
56
|
+
* Removed `bench.h` and timing calls in `main.c`.
|
57
|
+
* Updated API docs; getters return empty strings if not set
|
58
|
+
rather than NULL, as previously documented.
|
59
|
+
* Added api_tests for custom nodes.
|
60
|
+
* Made roundtrip test part of the test suite run by cmake.
|
61
|
+
* Regenerate `scanners.c` using re2c 0.15.3.
|
62
|
+
* Adjusted scanner for link url. This fixes a heap buffer overflow (#82).
|
63
|
+
* Added version number (1.0) to XML namespace. We don't guarantee
|
64
|
+
stability in this until 1.0 is actually released, however.
|
65
|
+
* Removed obsolete `TIMER` macro.
|
66
|
+
* Make `LIB_INSTALL_DIR` configurable (Mathieu Bridon, #79).
|
67
|
+
* Removed out-of-date luajit wrapper.
|
68
|
+
* Use `input`, not `parser->curline` to determine last line length.
|
69
|
+
* Small optimizations in `_scan_at`.
|
70
|
+
* Replaced hard-coded 4 with `TAB_STOP`.
|
71
|
+
* Have `make format` reformat api tests as well.
|
72
|
+
* Added api tests for man, latex, commonmark, and xml renderers (#51).
|
73
|
+
* render.c: added `begin_content` field. This is like `begin_line` except
|
74
|
+
that it doesn't trigger production of the prefix. So it can be set
|
75
|
+
after an initial prefix (say `> `) is printed by the renderer, and
|
76
|
+
consulted in determining whether to escape content that has a special
|
77
|
+
meaning at the beginning of a line. Used in the commonmark renderer.
|
78
|
+
* Python 3.5 compatibility: don't require HTMLParseError (Zhiming Wang).
|
79
|
+
HTMLParseError was removed in Python 3.5. Since it could never be thrown
|
80
|
+
in Python 3.5+, we simply define a placeholder when HTMLParseError
|
81
|
+
cannot be imported.
|
82
|
+
* Set `convert_charrefs=False` in `normalize.py` (#83). This defeats the
|
83
|
+
new default as of python 3.5, and allows the script to work with python
|
84
|
+
3.5.
|
85
|
+
|
1
86
|
[0.22.0]
|
2
87
|
|
3
88
|
* Removed `pre` from blocktags scanner. `pre` is handled separately
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.TH cmark 3 "
|
1
|
+
.TH cmark 3 "December 28, 2015" "LOCAL" "Library Functions Manual"
|
2
2
|
.SH
|
3
3
|
NAME
|
4
4
|
.PP
|
@@ -28,8 +28,8 @@ Creating and Destroying Nodes
|
|
28
28
|
|
29
29
|
.PP
|
30
30
|
Creates a new node of type \f[I]type\f[]. Note that the node may have
|
31
|
-
other required properties, which it is the caller
|
32
|
-
|
31
|
+
other required properties, which it is the caller's responsibility to
|
32
|
+
assign.
|
33
33
|
|
34
34
|
.PP
|
35
35
|
\fIvoid\f[] \fBcmark_node_free\f[](\fIcmark_node *node\f[])
|
@@ -88,7 +88,7 @@ of \f[C]CMARK_EVENT_EXIT\f[]). The iterator will return
|
|
88
88
|
natural application is an HTML renderer, where an \f[C]ENTER\f[] event
|
89
89
|
outputs an open tag and an \f[C]EXIT\f[] event outputs a close tag. An
|
90
90
|
iterator might also be used to transform an AST in some systematic way,
|
91
|
-
for example, turning all level\-3
|
91
|
+
for example, turning all level\-3 headings into regular paragraphs.
|
92
92
|
.IP
|
93
93
|
.nf
|
94
94
|
\f[C]
|
@@ -110,9 +110,9 @@ usage_example(cmark_node *root) {
|
|
110
110
|
Iterators will never return \f[C]EXIT\f[] events for leaf nodes, which
|
111
111
|
are nodes of type:
|
112
112
|
.IP \[bu] 2
|
113
|
-
|
113
|
+
CMARK_NODE_HTML_BLOCK
|
114
114
|
.IP \[bu] 2
|
115
|
-
|
115
|
+
CMARK_NODE_THEMATIC_BREAK
|
116
116
|
.IP \[bu] 2
|
117
117
|
CMARK_NODE_CODE_BLOCK
|
118
118
|
.IP \[bu] 2
|
@@ -124,7 +124,7 @@ CMARK_NODE_LINEBREAK
|
|
124
124
|
.IP \[bu] 2
|
125
125
|
CMARK_NODE_CODE
|
126
126
|
.IP \[bu] 2
|
127
|
-
|
127
|
+
CMARK_NODE_HTML_INLINE
|
128
128
|
.PP
|
129
129
|
Nodes must only be modified after an \f[C]EXIT\f[] event, or an
|
130
130
|
\f[C]ENTER\f[] event for leaf nodes.
|
@@ -210,7 +210,8 @@ of the type, or \f[C]"<unknown>"\f[].
|
|
210
210
|
\fIconst char *\f[] \fBcmark_node_get_literal\f[](\fIcmark_node *node\f[])
|
211
211
|
|
212
212
|
.PP
|
213
|
-
Returns the string contents of \f[I]node\f[], or
|
213
|
+
Returns the string contents of \f[I]node\f[], or an empty string if none
|
214
|
+
is set.
|
214
215
|
|
215
216
|
.PP
|
216
217
|
\fIint\f[] \fBcmark_node_set_literal\f[](\fIcmark_node *node\f[], \fIconst char *content\f[])
|
@@ -220,17 +221,17 @@ Sets the string contents of \f[I]node\f[]. Returns 1 on success, 0 on
|
|
220
221
|
failure.
|
221
222
|
|
222
223
|
.PP
|
223
|
-
\fIint\f[] \
|
224
|
+
\fIint\f[] \fBcmark_node_get_heading_level\f[](\fIcmark_node *node\f[])
|
224
225
|
|
225
226
|
.PP
|
226
|
-
Returns the
|
227
|
-
a
|
227
|
+
Returns the heading level of \f[I]node\f[], or 0 if \f[I]node\f[] is not
|
228
|
+
a heading.
|
228
229
|
|
229
230
|
.PP
|
230
|
-
\fIint\f[] \
|
231
|
+
\fIint\f[] \fBcmark_node_set_heading_level\f[](\fIcmark_node *node\f[], \fIint level\f[])
|
231
232
|
|
232
233
|
.PP
|
233
|
-
Sets the
|
234
|
+
Sets the heading level of \f[I]node\f[], returning 1 on success and 0 on
|
234
235
|
error.
|
235
236
|
|
236
237
|
.PP
|
@@ -285,14 +286,13 @@ Returns 1 if \f[I]node\f[] is a tight list, 0 otherwise.
|
|
285
286
|
\fIint\f[] \fBcmark_node_set_list_tight\f[](\fIcmark_node *node\f[], \fIint tight\f[])
|
286
287
|
|
287
288
|
.PP
|
288
|
-
Sets the
|
289
|
-
failure.
|
289
|
+
Sets the "tightness" of a list. Returns 1 on success, 0 on failure.
|
290
290
|
|
291
291
|
.PP
|
292
292
|
\fIconst char *\f[] \fBcmark_node_get_fence_info\f[](\fIcmark_node *node\f[])
|
293
293
|
|
294
294
|
.PP
|
295
|
-
Returns the info string from a fenced code block
|
295
|
+
Returns the info string from a fenced code block.
|
296
296
|
|
297
297
|
.PP
|
298
298
|
\fIint\f[] \fBcmark_node_set_fence_info\f[](\fIcmark_node *node\f[], \fIconst char *info\f[])
|
@@ -305,7 +305,8 @@ Sets the info string in a fenced code block, returning 1 on success and
|
|
305
305
|
\fIconst char *\f[] \fBcmark_node_get_url\f[](\fIcmark_node *node\f[])
|
306
306
|
|
307
307
|
.PP
|
308
|
-
|
308
|
+
Returns the URL of a link or image \f[I]node\f[], or an empty string if
|
309
|
+
no URL is set.
|
309
310
|
|
310
311
|
.PP
|
311
312
|
\fIint\f[] \fBcmark_node_set_url\f[](\fIcmark_node *node\f[], \fIconst char *url\f[])
|
@@ -318,7 +319,8 @@ on failure.
|
|
318
319
|
\fIconst char *\f[] \fBcmark_node_get_title\f[](\fIcmark_node *node\f[])
|
319
320
|
|
320
321
|
.PP
|
321
|
-
|
322
|
+
Returns the title of a link or image \f[I]node\f[], or an empty string
|
323
|
+
if no title is set.
|
322
324
|
|
323
325
|
.PP
|
324
326
|
\fIint\f[] \fBcmark_node_set_title\f[](\fIcmark_node *node\f[], \fIconst char *title\f[])
|
@@ -327,6 +329,36 @@ Gets the title of a link or image \f[I]node\f[], or NULL if none.
|
|
327
329
|
Sets the title of a link or image \f[I]node\f[]. Returns 1 on success, 0
|
328
330
|
on failure.
|
329
331
|
|
332
|
+
.PP
|
333
|
+
\fIconst char *\f[] \fBcmark_node_get_on_enter\f[](\fIcmark_node *node\f[])
|
334
|
+
|
335
|
+
.PP
|
336
|
+
Returns the literal "on enter" text for a custom \f[I]node\f[], or an
|
337
|
+
empty string if no on_enter is set.
|
338
|
+
|
339
|
+
.PP
|
340
|
+
\fIint\f[] \fBcmark_node_set_on_enter\f[](\fIcmark_node *node\f[], \fIconst char *on_enter\f[])
|
341
|
+
|
342
|
+
.PP
|
343
|
+
Sets the literal text to render "on enter" for a custom \f[I]node\f[].
|
344
|
+
Any children of the node will be rendered after this text. Returns 1 on
|
345
|
+
success 0 on failure.
|
346
|
+
|
347
|
+
.PP
|
348
|
+
\fIconst char *\f[] \fBcmark_node_get_on_exit\f[](\fIcmark_node *node\f[])
|
349
|
+
|
350
|
+
.PP
|
351
|
+
Returns the literal "on exit" text for a custom \f[I]node\f[], or an
|
352
|
+
empty string if no on_exit is set.
|
353
|
+
|
354
|
+
.PP
|
355
|
+
\fIint\f[] \fBcmark_node_set_on_exit\f[](\fIcmark_node *node\f[], \fIconst char *on_exit\f[])
|
356
|
+
|
357
|
+
.PP
|
358
|
+
Sets the literal text to render "on exit" for a custom \f[I]node\f[].
|
359
|
+
Any children of the node will be rendered before this text. Returns 1 on
|
360
|
+
success 0 on failure.
|
361
|
+
|
330
362
|
.PP
|
331
363
|
\fIint\f[] \fBcmark_node_get_start_line\f[](\fIcmark_node *node\f[])
|
332
364
|
|
@@ -402,7 +434,7 @@ Simple interface:
|
|
402
434
|
.IP
|
403
435
|
.nf
|
404
436
|
\f[C]
|
405
|
-
cmark_node *document = cmark_parse_document("Hello *world*",
|
437
|
+
cmark_node *document = cmark_parse_document("Hello *world*", 13,
|
406
438
|
CMARK_OPT_DEFAULT);
|
407
439
|
\f[]
|
408
440
|
.fi
|
@@ -496,6 +528,9 @@ Render a \f[I]node\f[] tree as a commonmark document.
|
|
496
528
|
.PP
|
497
529
|
Render a \f[I]node\f[] tree as a LaTeX document.
|
498
530
|
|
531
|
+
.SS
|
532
|
+
Options
|
533
|
+
|
499
534
|
.PP
|
500
535
|
.nf
|
501
536
|
\fC
|
@@ -506,13 +541,16 @@ Render a \f[I]node\f[] tree as a LaTeX document.
|
|
506
541
|
.fi
|
507
542
|
|
508
543
|
.PP
|
509
|
-
Default
|
544
|
+
Default options.
|
545
|
+
|
546
|
+
.SS
|
547
|
+
Options affecting rendering
|
510
548
|
|
511
549
|
.PP
|
512
550
|
.nf
|
513
551
|
\fC
|
514
552
|
.RS 0n
|
515
|
-
#define CMARK_OPT_SOURCEPOS 1
|
553
|
+
#define CMARK_OPT_SOURCEPOS (1 << 1)
|
516
554
|
.RE
|
517
555
|
\f[]
|
518
556
|
.fi
|
@@ -524,7 +562,7 @@ Include a \f[C]data\-sourcepos\f[] attribute on all block elements.
|
|
524
562
|
.nf
|
525
563
|
\fC
|
526
564
|
.RS 0n
|
527
|
-
#define CMARK_OPT_HARDBREAKS 2
|
565
|
+
#define CMARK_OPT_HARDBREAKS (1 << 2)
|
528
566
|
.RE
|
529
567
|
\f[]
|
530
568
|
.fi
|
@@ -536,32 +574,38 @@ Render \f[C]softbreak\f[] elements as hard line breaks.
|
|
536
574
|
.nf
|
537
575
|
\fC
|
538
576
|
.RS 0n
|
539
|
-
#define
|
577
|
+
#define CMARK_OPT_SAFE (1 << 3)
|
540
578
|
.RE
|
541
579
|
\f[]
|
542
580
|
.fi
|
543
581
|
|
544
582
|
.PP
|
545
|
-
|
583
|
+
Suppress raw HTML and unsafe links (\f[C]javascript:\f[],
|
584
|
+
\f[C]vbscript:\f[], \f[C]file:\f[], and \f[C]data:\f[], except for
|
585
|
+
\f[C]image/png\f[], \f[C]image/gif\f[], \f[C]image/jpeg\f[], or
|
586
|
+
\f[C]image/webp\f[] mime types). Raw HTML is replaced by a placeholder
|
587
|
+
HTML comment. Unsafe links are replaced by empty strings.
|
588
|
+
|
589
|
+
.SS
|
590
|
+
Options affecting parsing
|
546
591
|
|
547
592
|
.PP
|
548
593
|
.nf
|
549
594
|
\fC
|
550
595
|
.RS 0n
|
551
|
-
#define
|
596
|
+
#define CMARK_OPT_NORMALIZE (1 << 8)
|
552
597
|
.RE
|
553
598
|
\f[]
|
554
599
|
.fi
|
555
600
|
|
556
601
|
.PP
|
557
|
-
|
558
|
-
dashes.
|
602
|
+
Normalize tree by consolidating adjacent text nodes.
|
559
603
|
|
560
604
|
.PP
|
561
605
|
.nf
|
562
606
|
\fC
|
563
607
|
.RS 0n
|
564
|
-
#define CMARK_OPT_VALIDATE_UTF8
|
608
|
+
#define CMARK_OPT_VALIDATE_UTF8 (1 << 9)
|
565
609
|
.RE
|
566
610
|
\f[]
|
567
611
|
.fi
|
@@ -574,17 +618,14 @@ with the replacement character U+FFFD.
|
|
574
618
|
.nf
|
575
619
|
\fC
|
576
620
|
.RS 0n
|
577
|
-
#define
|
621
|
+
#define CMARK_OPT_SMART (1 << 10)
|
578
622
|
.RE
|
579
623
|
\f[]
|
580
624
|
.fi
|
581
625
|
|
582
626
|
.PP
|
583
|
-
|
584
|
-
|
585
|
-
\f[C]image/png\f[], \f[C]image/gif\f[], \f[C]image/jpeg\f[], or
|
586
|
-
\f[C]image/webp\f[] mime types). Raw HTML is replaced by a placeholder
|
587
|
-
HTML comment. Unsafe links are replaced by empty strings.
|
627
|
+
Convert straight quotes to curly, \-\-\- to em dashes, \-\- to en
|
628
|
+
dashes.
|
588
629
|
|
589
630
|
.SS
|
590
631
|
Version information
|