commonmarker 0.3.0 → 0.4.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.

Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/ext/commonmarker/cmark/CMakeLists.txt +10 -4
  3. data/ext/commonmarker/cmark/Makefile +5 -5
  4. data/ext/commonmarker/cmark/api_test/CMakeLists.txt +1 -1
  5. data/ext/commonmarker/cmark/api_test/main.c +16 -0
  6. data/ext/commonmarker/cmark/build/CMakeCache.txt +3 -4
  7. data/ext/commonmarker/cmark/build/CMakeFiles/2.8.10.1/CMakeSystem.cmake +4 -4
  8. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeError.log +12 -12
  9. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeOutput.log +97 -142
  10. data/ext/commonmarker/cmark/build/CMakeFiles/Makefile.cmake +0 -1
  11. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/build.make +1 -1
  12. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/link.txt +1 -1
  13. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/DependInfo.cmake +1 -1
  14. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/build.make +23 -23
  15. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmake_clean.cmake +2 -2
  16. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/link.txt +1 -1
  17. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/blocks.c.o +0 -0
  18. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/buffer.c.o +0 -0
  19. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark.c.o +0 -0
  20. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/commonmark.c.o +0 -0
  21. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_u.c.o +0 -0
  22. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/html.c.o +0 -0
  23. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/inlines.c.o +0 -0
  24. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/node.c.o +0 -0
  25. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/references.c.o +0 -0
  26. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/render.c.o +0 -0
  27. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/scanners.c.o +0 -0
  28. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/utf8.c.o +0 -0
  29. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/xml.c.o +0 -0
  30. data/ext/commonmarker/cmark/build/src/cmake_install.cmake +3 -3
  31. data/ext/commonmarker/cmark/build/src/cmark_version.h +2 -2
  32. data/ext/commonmarker/cmark/build/src/config.h +6 -6
  33. data/ext/commonmarker/cmark/build/src/libcmark.a +0 -0
  34. data/ext/commonmarker/cmark/build/src/libcmark.pc +1 -1
  35. data/ext/commonmarker/cmark/build/testdir/CTestTestfile.cmake +4 -4
  36. data/ext/commonmarker/cmark/changelog.txt +46 -0
  37. data/ext/commonmarker/cmark/man/man3/cmark.3 +21 -20
  38. data/ext/commonmarker/cmark/src/CMakeLists.txt +4 -6
  39. data/ext/commonmarker/cmark/src/bench.h +8 -8
  40. data/ext/commonmarker/cmark/src/blocks.c +917 -947
  41. data/ext/commonmarker/cmark/src/buffer.c +213 -288
  42. data/ext/commonmarker/cmark/src/buffer.h +19 -21
  43. data/ext/commonmarker/cmark/src/chunk.h +78 -82
  44. data/ext/commonmarker/cmark/src/cmark.c +9 -17
  45. data/ext/commonmarker/cmark/src/cmark.h +113 -157
  46. data/ext/commonmarker/cmark/src/cmark_ctype.c +24 -35
  47. data/ext/commonmarker/cmark/src/commonmark.c +390 -425
  48. data/ext/commonmarker/cmark/src/config.h.in +6 -6
  49. data/ext/commonmarker/cmark/src/houdini.h +21 -15
  50. data/ext/commonmarker/cmark/src/houdini_href_e.c +50 -57
  51. data/ext/commonmarker/cmark/src/houdini_html_e.c +36 -51
  52. data/ext/commonmarker/cmark/src/houdini_html_u.c +119 -124
  53. data/ext/commonmarker/cmark/src/html.c +289 -307
  54. data/ext/commonmarker/cmark/src/inlines.c +976 -1030
  55. data/ext/commonmarker/cmark/src/inlines.h +4 -2
  56. data/ext/commonmarker/cmark/src/iterator.c +96 -126
  57. data/ext/commonmarker/cmark/src/iterator.h +5 -5
  58. data/ext/commonmarker/cmark/src/latex.c +379 -401
  59. data/ext/commonmarker/cmark/src/main.c +168 -175
  60. data/ext/commonmarker/cmark/src/man.c +212 -226
  61. data/ext/commonmarker/cmark/src/node.c +746 -839
  62. data/ext/commonmarker/cmark/src/node.h +47 -48
  63. data/ext/commonmarker/cmark/src/parser.h +14 -14
  64. data/ext/commonmarker/cmark/src/references.c +101 -111
  65. data/ext/commonmarker/cmark/src/references.h +10 -8
  66. data/ext/commonmarker/cmark/src/render.c +144 -167
  67. data/ext/commonmarker/cmark/src/render.h +22 -41
  68. data/ext/commonmarker/cmark/src/scanners.c +27695 -20903
  69. data/ext/commonmarker/cmark/src/scanners.h +2 -1
  70. data/ext/commonmarker/cmark/src/scanners.re +1 -1
  71. data/ext/commonmarker/cmark/src/utf8.c +276 -419
  72. data/ext/commonmarker/cmark/src/utf8.h +6 -6
  73. data/ext/commonmarker/cmark/src/xml.c +129 -144
  74. data/ext/commonmarker/cmark/test/CMakeLists.txt +4 -4
  75. data/ext/commonmarker/cmark/test/smart_punct.txt +8 -0
  76. data/ext/commonmarker/cmark/test/spec.txt +109 -47
  77. data/lib/commonmarker/version.rb +1 -1
  78. metadata +2 -2
@@ -27,7 +27,6 @@ SET(CMAKE_MAKEFILE_DEPENDS
27
27
  "/usr/local/Cellar/cmake/2.8.10.1-boxen1/share/cmake/Modules/CMakeCXXInformation.cmake"
28
28
  "/usr/local/Cellar/cmake/2.8.10.1-boxen1/share/cmake/Modules/CMakeClDeps.cmake"
29
29
  "/usr/local/Cellar/cmake/2.8.10.1-boxen1/share/cmake/Modules/CMakeCommonLanguageInclude.cmake"
30
- "/usr/local/Cellar/cmake/2.8.10.1-boxen1/share/cmake/Modules/CMakeConfigurableFile.in"
31
30
  "/usr/local/Cellar/cmake/2.8.10.1-boxen1/share/cmake/Modules/CMakeDetermineCCompiler.cmake"
32
31
  "/usr/local/Cellar/cmake/2.8.10.1-boxen1/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake"
33
32
  "/usr/local/Cellar/cmake/2.8.10.1-boxen1/share/cmake/Modules/CMakeDetermineCompiler.cmake"
@@ -134,7 +134,7 @@ api_test/api_test: api_test/CMakeFiles/api_test.dir/cplusplus.cpp.o
134
134
  api_test/api_test: api_test/CMakeFiles/api_test.dir/harness.c.o
135
135
  api_test/api_test: api_test/CMakeFiles/api_test.dir/main.c.o
136
136
  api_test/api_test: api_test/CMakeFiles/api_test.dir/build.make
137
- api_test/api_test: src/libcmark.0.21.0.dylib
137
+ api_test/api_test: src/libcmark.0.22.0.dylib
138
138
  api_test/api_test: api_test/CMakeFiles/api_test.dir/link.txt
139
139
  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking CXX executable api_test"
140
140
  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.21.0.dylib
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.22.0.dylib
@@ -28,7 +28,7 @@ SET(CMAKE_C_COMPILER_ID "Clang")
28
28
 
29
29
  # Pairs of files generated by the same build rule.
30
30
  SET(CMAKE_MULTIPLE_OUTPUT_PAIRS
31
- "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.dylib" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.0.21.0.dylib"
31
+ "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.dylib" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.0.22.0.dylib"
32
32
  )
33
33
 
34
34
 
@@ -514,32 +514,32 @@ libcmark_OBJECTS = \
514
514
  # External object files for target libcmark
515
515
  libcmark_EXTERNAL_OBJECTS =
516
516
 
517
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/cmark.c.o
518
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/node.c.o
519
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/iterator.c.o
520
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/blocks.c.o
521
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/inlines.c.o
522
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/scanners.c.o
523
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/utf8.c.o
524
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/buffer.c.o
525
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/references.c.o
526
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/render.c.o
527
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/man.c.o
528
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/xml.c.o
529
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/html.c.o
530
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/commonmark.c.o
531
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/latex.c.o
532
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/houdini_href_e.c.o
533
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/houdini_html_e.c.o
534
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/houdini_html_u.c.o
535
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/cmark_ctype.c.o
536
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/build.make
537
- src/libcmark.0.21.0.dylib: src/CMakeFiles/libcmark.dir/link.txt
517
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/cmark.c.o
518
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/node.c.o
519
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/iterator.c.o
520
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/blocks.c.o
521
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/inlines.c.o
522
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/scanners.c.o
523
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/utf8.c.o
524
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/buffer.c.o
525
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/references.c.o
526
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/render.c.o
527
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/man.c.o
528
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/xml.c.o
529
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/html.c.o
530
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/commonmark.c.o
531
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/latex.c.o
532
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/houdini_href_e.c.o
533
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/houdini_html_e.c.o
534
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/houdini_html_u.c.o
535
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/cmark_ctype.c.o
536
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/build.make
537
+ src/libcmark.0.22.0.dylib: src/CMakeFiles/libcmark.dir/link.txt
538
538
  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking C shared library libcmark.dylib"
539
539
  cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/libcmark.dir/link.txt --verbose=$(VERBOSE)
540
- cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src && $(CMAKE_COMMAND) -E cmake_symlink_library libcmark.0.21.0.dylib libcmark.0.21.0.dylib libcmark.dylib
540
+ cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src && $(CMAKE_COMMAND) -E cmake_symlink_library libcmark.0.22.0.dylib libcmark.0.22.0.dylib libcmark.dylib
541
541
 
542
- src/libcmark.dylib: src/libcmark.0.21.0.dylib
542
+ src/libcmark.dylib: src/libcmark.0.22.0.dylib
543
543
 
544
544
  # Rule to build all files generated by this target.
545
545
  src/CMakeFiles/libcmark.dir/build: src/libcmark.dylib
@@ -18,9 +18,9 @@ FILE(REMOVE_RECURSE
18
18
  "CMakeFiles/libcmark.dir/houdini_html_e.c.o"
19
19
  "CMakeFiles/libcmark.dir/houdini_html_u.c.o"
20
20
  "CMakeFiles/libcmark.dir/cmark_ctype.c.o"
21
- "libcmark.pdb"
21
+ "libcmark_dll.pdb"
22
22
  "libcmark.dylib"
23
- "libcmark.0.21.0.dylib"
23
+ "libcmark.0.22.0.dylib"
24
24
  )
25
25
 
26
26
  # Per-language clean rules from dependency scanning.
@@ -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.21.0 -current_version 0.21.0 -o libcmark.0.21.0.dylib -install_name /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.0.21.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
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.22.0 -current_version 0.22.0 -o libcmark.0.22.0.dylib -install_name /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.0.22.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
@@ -43,17 +43,17 @@ ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unsp
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.21.0.dylib"
46
+ "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.0.22.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.21.0.dylib"
50
+ "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcmark.0.22.0.dylib"
51
51
  "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcmark.dylib"
52
52
  )
53
53
  IF(EXISTS "${file}" AND
54
54
  NOT IS_SYMLINK "${file}")
55
55
  EXECUTE_PROCESS(COMMAND "/usr/bin/install_name_tool"
56
- -id "libcmark.0.21.0.dylib"
56
+ -id "libcmark.0.22.0.dylib"
57
57
  "${file}")
58
58
  IF(CMAKE_INSTALL_DO_STRIP)
59
59
  EXECUTE_PROCESS(COMMAND "/usr/bin/strip" "${file}")
@@ -1,7 +1,7 @@
1
1
  #ifndef CMARK_VERSION_H
2
2
  #define CMARK_VERSION_H
3
3
 
4
- #define CMARK_VERSION ((0 << 16) | (21 << 8) | 0)
5
- #define CMARK_VERSION_STRING "0.21.0"
4
+ #define CMARK_VERSION ((0 << 16) | (22 << 8) | 0)
5
+ #define CMARK_VERSION_STRING "0.22.0"
6
6
 
7
7
  #endif
@@ -16,10 +16,10 @@
16
16
  #define CMARK_ATTRIBUTE(list)
17
17
  #endif
18
18
 
19
- #define HAVE_VA_COPY
20
-
21
- #ifndef HAVE_VA_COPY
22
- #define va_copy(dest, src) ((dest) = (src))
19
+ #ifndef CMARK_INLINE
20
+ #if defined(_MSC_VER) && !defined(__cplusplus)
21
+ #define CMARK_INLINE __inline
22
+ #else
23
+ #define CMARK_INLINE inline
24
+ #endif
23
25
  #endif
24
-
25
- #define HAVE_C99_SNPRINTF
@@ -5,6 +5,6 @@ includedir=/usr/local/include
5
5
 
6
6
  Name: libcmark
7
7
  Description: CommonMark parsing, rendering, and manipulation
8
- Version: 0.21.0
8
+ Version: 0.22.0
9
9
  Libs: -L${libdir} -lcmark
10
10
  Cflags: -I${includedir}
@@ -6,7 +6,7 @@
6
6
  # testing this directory and lists subdirectories to be tested as well.
7
7
  ADD_TEST(api_test "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/api_test/api_test")
8
8
  ADD_TEST(html_normalization "/usr/local/bin/python3" "-m" "doctest" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/normalize.py")
9
- ADD_TEST(spectest_library "/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" "--library-dir" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src")
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/src")
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/src/cmark")
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/src/cmark --smart")
9
+ ADD_TEST(spectest_library "/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" "--library-dir" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/testdir/../src")
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
+ 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
+ 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")
@@ -1,3 +1,49 @@
1
+ [0.22.0]
2
+
3
+ * Removed `pre` from blocktags scanner. `pre` is handled separately
4
+ in rule 1 and needn't be handled in rule 6.
5
+ * Added `iframe` to list of blocktags, as per spec change.
6
+ * Fixed bug with `HRULE` after blank line. This previously caused cmark
7
+ to break out of a list, thinking it had two consecutive blanks.
8
+ * Check for empty string before trying to look at line ending.
9
+ * Make sure every line fed to `S_process_line` ends with `\n` (#72).
10
+ So `S_process_line` sees only unix style line endings. Ultimately we
11
+ probably want a better solution, allowing the line ending style of
12
+ the input file to be preserved. This solution forces output with newlines.
13
+ * Improved `cmark_strbuf_normalize_whitespace` (#73). Now all characters
14
+ that satisfy `cmark_isspace` are recognized as whitespace. Previously
15
+ `\r` and `\t` (and others) weren't included.
16
+ * Treat line ending with EOF as ending with newline (#71).
17
+ * Fixed `--hardbreaks` with `\r\n` line breaks (#68).
18
+ * Disallow list item starting with multiple blank lines (jgm/CommonMark#332).
19
+ * Allow tabs before closing `#`s in ATX header
20
+ * Removed `cmark_strbuf_printf` and `cmark_strbuf_vprintf`.
21
+ These are no longer needed, and cause complications for MSVC.
22
+ Also removed `HAVE_VA_COPY` and `HAVE_C99_SNPRINTF` feature tests.
23
+ * Added option to disable tests (Kevin Wojniak).
24
+ * Added `CMARK_INLINE` macro.
25
+ * Removed need to disable MSVC warnings 4267, 4244, 4800
26
+ (Kevin Wojniak).
27
+ * Fixed MSVC inline errors when cmark is included in sources that
28
+ don't have the same set of disabled warnings (Kevin Wojniak).
29
+ * Fix `FileNotFoundError` errors on tests when cmark is built from
30
+ another project via `add_subdirectory()` (Kevin Wojniak).
31
+ * Prefix `utf8proc` functions to avoid conflict with existing library
32
+ (Kevin Wojniak).
33
+ * Avoid name clash between Windows `.pdb` files (Nick Wellnhofer).
34
+ * Improved `smart_punct.txt` (see jgm/commonmark.js#61).
35
+ * Set `POSITION_INDEPENDENT_CODE` `ON` for static library (see #39).
36
+ * `make bench`: allow overriding `BENCHFILE`. Previously if you did
37
+ this, it would clopper `BENCHFILE` with the default bench file.
38
+ * `make bench`: Use -10 priority with renice.
39
+ * Improved `make_autolink`. Ensures that title is chunk with empty
40
+ string rather than NULL, as with other links.
41
+ * Added `clang-check` target.
42
+ * Travis: split `roundtrip_test` and `leakcheck` (OGINO Masanori).
43
+ * Use clang-format, llvm style, for formatting. Reformatted all source files.
44
+ Added `format` target to Makefile. Removed `astyle` target.
45
+ Updated `.editorconfig`.
46
+
1
47
  [0.21.0]
2
48
 
3
49
  * Updated to version 0.21 of spec.
@@ -1,4 +1,4 @@
1
- .TH cmark 3 "July 13, 2015" "LOCAL" "Library Functions Manual"
1
+ .TH cmark 3 "August 07, 2015" "LOCAL" "Library Functions Manual"
2
2
  .SH
3
3
  NAME
4
4
  .PP
@@ -24,12 +24,12 @@ Node Structure
24
24
  Creating and Destroying Nodes
25
25
 
26
26
  .PP
27
- \fIcmark_node*\f[] \fBcmark_node_new\f[](\fIcmark_node_type type\f[])
27
+ \fIcmark_node *\f[] \fBcmark_node_new\f[](\fIcmark_node_type type\f[])
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's responsibility to
32
- assign.
31
+ other required properties, which it is the caller\[cq]s responsibility
32
+ to assign.
33
33
 
34
34
  .PP
35
35
  \fIvoid\f[] \fBcmark_node_free\f[](\fIcmark_node *node\f[])
@@ -41,34 +41,34 @@ Frees the memory allocated for a node.
41
41
  Tree Traversal
42
42
 
43
43
  .PP
44
- \fIcmark_node*\f[] \fBcmark_node_next\f[](\fIcmark_node *node\f[])
44
+ \fIcmark_node *\f[] \fBcmark_node_next\f[](\fIcmark_node *node\f[])
45
45
 
46
46
  .PP
47
47
  Returns the next node in the sequence after \f[I]node\f[], or NULL if
48
48
  there is none.
49
49
 
50
50
  .PP
51
- \fIcmark_node*\f[] \fBcmark_node_previous\f[](\fIcmark_node *node\f[])
51
+ \fIcmark_node *\f[] \fBcmark_node_previous\f[](\fIcmark_node *node\f[])
52
52
 
53
53
  .PP
54
54
  Returns the previous node in the sequence after \f[I]node\f[], or NULL
55
55
  if there is none.
56
56
 
57
57
  .PP
58
- \fIcmark_node*\f[] \fBcmark_node_parent\f[](\fIcmark_node *node\f[])
58
+ \fIcmark_node *\f[] \fBcmark_node_parent\f[](\fIcmark_node *node\f[])
59
59
 
60
60
  .PP
61
61
  Returns the parent of \f[I]node\f[], or NULL if there is none.
62
62
 
63
63
  .PP
64
- \fIcmark_node*\f[] \fBcmark_node_first_child\f[](\fIcmark_node *node\f[])
64
+ \fIcmark_node *\f[] \fBcmark_node_first_child\f[](\fIcmark_node *node\f[])
65
65
 
66
66
  .PP
67
67
  Returns the first child of \f[I]node\f[], or NULL if \f[I]node\f[] has
68
68
  no children.
69
69
 
70
70
  .PP
71
- \fIcmark_node*\f[] \fBcmark_node_last_child\f[](\fIcmark_node *node\f[])
71
+ \fIcmark_node *\f[] \fBcmark_node_last_child\f[](\fIcmark_node *node\f[])
72
72
 
73
73
  .PP
74
74
  Returns the last child of \f[I]node\f[], or NULL if \f[I]node\f[] has no
@@ -130,7 +130,7 @@ Nodes must only be modified after an \f[C]EXIT\f[] event, or an
130
130
  \f[C]ENTER\f[] event for leaf nodes.
131
131
 
132
132
  .PP
133
- \fIcmark_iter*\f[] \fBcmark_iter_new\f[](\fIcmark_node *root\f[])
133
+ \fIcmark_iter *\f[] \fBcmark_iter_new\f[](\fIcmark_node *root\f[])
134
134
 
135
135
  .PP
136
136
  Creates a new iterator starting at \f[I]root\f[]. The current node and
@@ -152,7 +152,7 @@ Advances to the next node and returns the event type
152
152
  \f[C]CMARK_EVENT_DONE\f[]).
153
153
 
154
154
  .PP
155
- \fIcmark_node*\f[] \fBcmark_iter_get_node\f[](\fIcmark_iter *iter\f[])
155
+ \fIcmark_node *\f[] \fBcmark_iter_get_node\f[](\fIcmark_iter *iter\f[])
156
156
 
157
157
  .PP
158
158
  Returns the current node.
@@ -164,7 +164,7 @@ Returns the current node.
164
164
  Returns the current event type.
165
165
 
166
166
  .PP
167
- \fIcmark_node*\f[] \fBcmark_iter_get_root\f[](\fIcmark_iter *iter\f[])
167
+ \fIcmark_node *\f[] \fBcmark_iter_get_root\f[](\fIcmark_iter *iter\f[])
168
168
 
169
169
  .PP
170
170
  Returns the root node.
@@ -181,7 +181,7 @@ descendant of the root node or the root node itself.
181
181
  Accessors
182
182
 
183
183
  .PP
184
- \fIvoid*\f[] \fBcmark_node_get_user_data\f[](\fIcmark_node *node\f[])
184
+ \fIvoid *\f[] \fBcmark_node_get_user_data\f[](\fIcmark_node *node\f[])
185
185
 
186
186
  .PP
187
187
  Returns the user data of \f[I]node\f[].
@@ -200,14 +200,14 @@ failure.
200
200
  Returns the type of \f[I]node\f[], or \f[C]CMARK_NODE_NONE\f[] on error.
201
201
 
202
202
  .PP
203
- \fIconst char*\f[] \fBcmark_node_get_type_string\f[](\fIcmark_node *node\f[])
203
+ \fIconst char *\f[] \fBcmark_node_get_type_string\f[](\fIcmark_node *node\f[])
204
204
 
205
205
  .PP
206
206
  Like \f[I]cmark_node_get_type\f[], but returns a string representation
207
207
  of the type, or \f[C]"<unknown>"\f[].
208
208
 
209
209
  .PP
210
- \fIconst char*\f[] \fBcmark_node_get_literal\f[](\fIcmark_node *node\f[])
210
+ \fIconst char *\f[] \fBcmark_node_get_literal\f[](\fIcmark_node *node\f[])
211
211
 
212
212
  .PP
213
213
  Returns the string contents of \f[I]node\f[], or NULL if none.
@@ -285,10 +285,11 @@ Returns 1 if \f[I]node\f[] is a tight list, 0 otherwise.
285
285
  \fIint\f[] \fBcmark_node_set_list_tight\f[](\fIcmark_node *node\f[], \fIint tight\f[])
286
286
 
287
287
  .PP
288
- Sets the "tightness" of a list. Returns 1 on success, 0 on failure.
288
+ Sets the \[lq]tightness\[rq] of a list. Returns 1 on success, 0 on
289
+ failure.
289
290
 
290
291
  .PP
291
- \fIconst char*\f[] \fBcmark_node_get_fence_info\f[](\fIcmark_node *node\f[])
292
+ \fIconst char *\f[] \fBcmark_node_get_fence_info\f[](\fIcmark_node *node\f[])
292
293
 
293
294
  .PP
294
295
  Returns the info string from a fenced code block, or NULL if none.
@@ -301,7 +302,7 @@ Sets the info string in a fenced code block, returning 1 on success and
301
302
  0 on failure.
302
303
 
303
304
  .PP
304
- \fIconst char*\f[] \fBcmark_node_get_url\f[](\fIcmark_node *node\f[])
305
+ \fIconst char *\f[] \fBcmark_node_get_url\f[](\fIcmark_node *node\f[])
305
306
 
306
307
  .PP
307
308
  Gets the URL of a link or image \f[I]node\f[], or NULL if none.
@@ -314,7 +315,7 @@ Sets the URL of a link or image \f[I]node\f[]. Returns 1 on success, 0
314
315
  on failure.
315
316
 
316
317
  .PP
317
- \fIconst char*\f[] \fBcmark_node_get_title\f[](\fIcmark_node *node\f[])
318
+ \fIconst char *\f[] \fBcmark_node_get_title\f[](\fIcmark_node *node\f[])
318
319
 
319
320
  .PP
320
321
  Gets the title of a link or image \f[I]node\f[], or NULL if none.
@@ -553,7 +554,7 @@ Normalize tree by consolidating adjacent text nodes.
553
554
  .fi
554
555
 
555
556
  .PP
556
- Convert straight quotes to curly, \-\-\- to em dashes, \-\- to en
557
+ Convert straight quotes to curly, \[em] to em dashes, \[en] to en
557
558
  dashes.
558
559
 
559
560
  .PP
@@ -104,6 +104,9 @@ endif(MSVC)
104
104
  set_property(TARGET ${LIBRARY}
105
105
  APPEND PROPERTY MACOSX_RPATH true)
106
106
 
107
+ # Avoid name clash between PROGRAM and LIBRARY pdb files.
108
+ set_target_properties(${LIBRARY} PROPERTIES PDB_NAME cmark_dll)
109
+
107
110
  generate_export_header(${LIBRARY}
108
111
  BASE_NAME ${PROJECT_NAME})
109
112
 
@@ -139,11 +142,6 @@ CHECK_C_SOURCE_COMPILES("
139
142
  int f(void) __attribute__ (());
140
143
  int main() { return 0; }
141
144
  " HAVE___ATTRIBUTE__)
142
- CHECK_C_SOURCE_RUNS("
143
- #include <stdio.h>
144
- int main() { return snprintf(NULL, 0, \"123\") == 3 ? 0 : 1; }
145
- " HAVE_C99_SNPRINTF)
146
- CHECK_SYMBOL_EXISTS(va_copy stdarg.h HAVE_VA_COPY)
147
145
 
148
146
  CONFIGURE_FILE(
149
147
  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
@@ -157,7 +155,7 @@ if(MSVC)
157
155
  else()
158
156
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
159
157
  endif()
160
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4127 /wd4244 /wd4267 /wd4706 /wd4800 /D_CRT_SECURE_NO_WARNINGS")
158
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4706 /D_CRT_SECURE_NO_WARNINGS")
161
159
  elseif(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
162
160
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=c99 -pedantic")
163
161
  endif()
@@ -9,15 +9,15 @@ float _cmark_start_time;
9
9
  float _cmark_end_time;
10
10
  float _cmark_save_time;
11
11
 
12
- #define start_timer() \
13
- _cmark_save_time = _cmark_start_time; \
14
- _cmark_start_time = (float)clock()/CLOCKS_PER_SEC
12
+ #define start_timer() \
13
+ _cmark_save_time = _cmark_start_time; \
14
+ _cmark_start_time = (float)clock() / CLOCKS_PER_SEC
15
15
 
16
- #define end_timer(M) \
17
- _cmark_end_time = (float)clock()/CLOCKS_PER_SEC; \
18
- fprintf(stderr, "[TIME] (%s:%d) %4.f ns " M "\n", __FILE__, \
19
- __LINE__, (_cmark_end_time - _cmark_start_time) * 1000000); \
20
- _cmark_start_time = _cmark_save_time;
16
+ #define end_timer(M) \
17
+ _cmark_end_time = (float)clock() / CLOCKS_PER_SEC; \
18
+ fprintf(stderr, "[TIME] (%s:%d) %4.f ns " M "\n", __FILE__, __LINE__, \
19
+ (_cmark_end_time - _cmark_start_time) * 1000000); \
20
+ _cmark_start_time = _cmark_save_time;
21
21
 
22
22
  #else
23
23
  #define start_timer()