commonmarker 0.14.9 → 0.14.11

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 (146) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +4 -2
  3. data/commonmarker.gemspec +1 -1
  4. data/ext/commonmarker/cmark/api_test/main.c +7 -0
  5. data/ext/commonmarker/cmark/man/man3/cmark.3 +13 -1
  6. data/ext/commonmarker/cmark/src/blocks.c +6 -0
  7. data/ext/commonmarker/cmark/src/cmark.h +5 -0
  8. data/ext/commonmarker/cmark/src/html.c +18 -6
  9. data/ext/commonmarker/cmark/src/main.c +13 -10
  10. data/lib/commonmarker/config.rb +1 -0
  11. data/lib/commonmarker/version.rb +1 -1
  12. data/test/test_maliciousness.rb +3 -3
  13. data/test/test_node.rb +5 -2
  14. metadata +4 -136
  15. data/ext/commonmarker/cmark/build/CMakeCache.txt +0 -469
  16. data/ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CMakeCCompiler.cmake +0 -68
  17. data/ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CMakeCXXCompiler.cmake +0 -69
  18. data/ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CMakeDetermineCompilerABI_C.bin +0 -0
  19. data/ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CMakeDetermineCompilerABI_CXX.bin +0 -0
  20. data/ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CMakeSystem.cmake +0 -15
  21. data/ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CompilerIdC/CMakeCCompilerId.c +0 -561
  22. data/ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CompilerIdC/a.out +0 -0
  23. data/ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -533
  24. data/ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CompilerIdCXX/a.out +0 -0
  25. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  26. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeError.log +0 -14
  27. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeOutput.log +0 -562
  28. data/ext/commonmarker/cmark/build/CMakeFiles/Makefile.cmake +0 -155
  29. data/ext/commonmarker/cmark/build/CMakeFiles/Makefile2 +0 -390
  30. data/ext/commonmarker/cmark/build/CMakeFiles/TargetDirectories.txt +0 -48
  31. data/ext/commonmarker/cmark/build/CMakeFiles/cmake.check_cache +0 -1
  32. data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.bin +0 -0
  33. data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.c +0 -34
  34. data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.cxx +0 -405
  35. data/ext/commonmarker/cmark/build/CMakeFiles/progress.marks +0 -1
  36. data/ext/commonmarker/cmark/build/CTestTestfile.cmake +0 -11
  37. data/ext/commonmarker/cmark/build/Makefile +0 -278
  38. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  39. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/DependInfo.cmake +0 -35
  40. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/build.make +0 -168
  41. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/cmake_clean.cmake +0 -12
  42. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/depend.make +0 -2
  43. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/flags.make +0 -17
  44. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/link.txt +0 -1
  45. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/progress.make +0 -5
  46. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/progress.marks +0 -1
  47. data/ext/commonmarker/cmark/build/api_test/Makefile +0 -300
  48. data/ext/commonmarker/cmark/build/api_test/cmake_install.cmake +0 -29
  49. data/ext/commonmarker/cmark/build/cmake_install.cmake +0 -49
  50. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  51. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/DependInfo.cmake +0 -36
  52. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/build.make +0 -253
  53. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/cmake_clean.cmake +0 -16
  54. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/depend.make +0 -2
  55. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/flags.make +0 -10
  56. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/link.txt +0 -1
  57. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/progress.make +0 -8
  58. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/C.includecache +0 -208
  59. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/DependInfo.cmake +0 -29
  60. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/autolink.c.o +0 -0
  61. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/build.make +0 -249
  62. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/cmake_clean.cmake +0 -15
  63. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/cmake_clean_target.cmake +0 -3
  64. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/core-extensions.c.o +0 -0
  65. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/depend.internal +0 -99
  66. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/depend.make +0 -99
  67. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/ext_scanners.c.o +0 -0
  68. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/flags.make +0 -10
  69. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/link.txt +0 -2
  70. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/progress.make +0 -8
  71. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/strikethrough.c.o +0 -0
  72. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/table.c.o +0 -0
  73. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/tagfilter.c.o +0 -0
  74. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/progress.marks +0 -1
  75. data/ext/commonmarker/cmark/build/extensions/Makefile +0 -424
  76. data/ext/commonmarker/cmark/build/extensions/cmake_install.cmake +0 -29
  77. data/ext/commonmarker/cmark/build/extensions/cmarkextensions_export.h +0 -42
  78. data/ext/commonmarker/cmark/build/extensions/libcmarkextensions.a +0 -0
  79. data/ext/commonmarker/cmark/build/man/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  80. data/ext/commonmarker/cmark/build/man/CMakeFiles/progress.marks +0 -1
  81. data/ext/commonmarker/cmark/build/man/Makefile +0 -194
  82. data/ext/commonmarker/cmark/build/man/cmake_install.cmake +0 -37
  83. data/ext/commonmarker/cmark/build/src/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  84. data/ext/commonmarker/cmark/build/src/CMakeFiles/Export/lib/cmake/cmark-release.cmake +0 -38
  85. data/ext/commonmarker/cmark/build/src/CMakeFiles/Export/lib/cmake/cmark.cmake +0 -95
  86. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/DependInfo.cmake +0 -30
  87. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/build.make +0 -115
  88. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmake_clean.cmake +0 -10
  89. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/depend.make +0 -2
  90. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/flags.make +0 -10
  91. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/link.txt +0 -1
  92. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/progress.make +0 -3
  93. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/DependInfo.cmake +0 -57
  94. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/build.make +0 -738
  95. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmake_clean.cmake +0 -34
  96. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/depend.make +0 -2
  97. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/flags.make +0 -10
  98. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/link.txt +0 -1
  99. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/progress.make +0 -26
  100. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/C.includecache +0 -612
  101. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/DependInfo.cmake +0 -51
  102. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/arena.c.o +0 -0
  103. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/blocks.c.o +0 -0
  104. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/buffer.c.o +0 -0
  105. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/build.make +0 -735
  106. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean.cmake +0 -33
  107. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean_target.cmake +0 -3
  108. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark.c.o +0 -0
  109. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark_ctype.c.o +0 -0
  110. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/commonmark.c.o +0 -0
  111. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.internal +0 -290
  112. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.make +0 -290
  113. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/flags.make +0 -10
  114. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_href_e.c.o +0 -0
  115. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_e.c.o +0 -0
  116. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_u.c.o +0 -0
  117. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/html.c.o +0 -0
  118. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/inlines.c.o +0 -0
  119. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/iterator.c.o +0 -0
  120. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/latex.c.o +0 -0
  121. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/link.txt +0 -2
  122. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/linked_list.c.o +0 -0
  123. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/man.c.o +0 -0
  124. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/node.c.o +0 -0
  125. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/plugin.c.o +0 -0
  126. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/progress.make +0 -26
  127. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/references.c.o +0 -0
  128. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/registry.c.o +0 -0
  129. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/render.c.o +0 -0
  130. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/scanners.c.o +0 -0
  131. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/syntax_extension.c.o +0 -0
  132. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/utf8.c.o +0 -0
  133. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/xml.c.o +0 -0
  134. data/ext/commonmarker/cmark/build/src/CMakeFiles/progress.marks +0 -1
  135. data/ext/commonmarker/cmark/build/src/Makefile +0 -1064
  136. data/ext/commonmarker/cmark/build/src/cmake_install.cmake +0 -103
  137. data/ext/commonmarker/cmark/build/src/cmark_export.h +0 -42
  138. data/ext/commonmarker/cmark/build/src/cmark_version.h +0 -7
  139. data/ext/commonmarker/cmark/build/src/config.h +0 -76
  140. data/ext/commonmarker/cmark/build/src/libcmark.a +0 -0
  141. data/ext/commonmarker/cmark/build/src/libcmark.pc +0 -10
  142. data/ext/commonmarker/cmark/build/testdir/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  143. data/ext/commonmarker/cmark/build/testdir/CMakeFiles/progress.marks +0 -1
  144. data/ext/commonmarker/cmark/build/testdir/CTestTestfile.cmake +0 -8
  145. data/ext/commonmarker/cmark/build/testdir/Makefile +0 -194
  146. data/ext/commonmarker/cmark/build/testdir/cmake_install.cmake +0 -29
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d91d8cec86c88b5c81ef505d8af5c6b085e462b2
4
- data.tar.gz: 15c77a67bb352277d1a5bdc1949a70df3bf10b5b
3
+ metadata.gz: db3851e8ab5d5808923f85e3b77922a3f3e2f007
4
+ data.tar.gz: f968f0a231068c8ebb108cbdfa34f0afe9a74cf6
5
5
  SHA512:
6
- metadata.gz: 6abb8aaf78a75a8432f15f8fa6fa2398a028fd9d2ce9c1acaf4d04f82d2a35d3c0312547e7021a7f762f806b662fd54795b8f11e9ac113f64ac310b1eed6df97
7
- data.tar.gz: a29a073894c8429645cd40f86642557f488b44036474e056f8a4bace6ba44afa841ff7354ffd22d2113ed8fbfe15b8c1c5618540a2415fbdb27c59200d80c8fd
6
+ metadata.gz: 620acab79c1dfd0ad73c2dc14cfef705bff57db529aeb4ee9d1a44267e96a73849234b1b615ecf5103a367ef7434dd98fde853022f10f409183c654e5a9b1a4c
7
+ data.tar.gz: 117b7eac91353132f4cf5e3c4226bdc233c91a74dcb71579169b876bfc82f97c019084870c2656696973012caec7efd9193cb09fb812e68bfb3312d284e21b02
data/Rakefile CHANGED
@@ -79,14 +79,16 @@ end
79
79
 
80
80
  desc 'Generate and publish docs to gh-pages'
81
81
  task :publish => [:rdoc] do
82
+ require 'shellwords'
83
+
82
84
  Dir.mktmpdir do |tmp|
83
85
  system "mv docs/* #{tmp}"
84
86
  system 'git checkout gh-pages'
85
87
  system 'rm -rf *'
86
88
  system "mv #{tmp}/* ."
87
- message = "Site updated at #{Time.now.utc}"
89
+ message = Shellwords.escape("Site updated at #{Time.now.utc}")
88
90
  system 'git add .'
89
- system "git commit -am #{message.shellescape}"
91
+ system "git commit -am #{message}"
90
92
  system 'git push origin gh-pages --force'
91
93
  system 'git checkout master'
92
94
  system 'echo yolo'
data/commonmarker.gemspec CHANGED
@@ -31,5 +31,5 @@ Gem::Specification.new do |s|
31
31
  s.add_development_dependency 'bundler', '~> 1.2'
32
32
  s.add_development_dependency 'json', '~> 1.8.1'
33
33
  s.add_development_dependency 'awesome_print'
34
- s.add_development_dependency 'rdoc', '~> 4.1.0'
34
+ s.add_development_dependency 'rdoc', '~> 5.1'
35
35
  end
@@ -739,6 +739,13 @@ static void utf8(test_batch_runner *runner) {
739
739
  STR_EQ(runner, html, "<pre><code>\xef\xbf\xbd\n</code></pre>\n",
740
740
  "utf8 with \\0\\n");
741
741
  free(html);
742
+
743
+ // Test byte-order marker
744
+ static const char string_with_bom[] = "\xef\xbb\xbf# Hello\n";
745
+ html = cmark_markdown_to_html(
746
+ string_with_bom, sizeof(string_with_bom) - 1, CMARK_OPT_DEFAULT);
747
+ STR_EQ(runner, html, "<h1>Hello</h1>\n", "utf8 with BOM");
748
+ free(html);
742
749
  }
743
750
 
744
751
  static void test_char(test_batch_runner *runner, int valid, const char *utf8,
@@ -1,4 +1,4 @@
1
- .TH cmark 3 "November 29, 2016" "LOCAL" "Library Functions Manual"
1
+ .TH cmark 3 "March 22, 2017" "LOCAL" "Library Functions Manual"
2
2
  .SH
3
3
  NAME
4
4
  .PP
@@ -900,6 +900,18 @@ with the replacement character U+FFFD.
900
900
  Convert straight quotes to curly, \-\-\- to em dashes, \-\- to en
901
901
  dashes.
902
902
 
903
+ .PP
904
+ .nf
905
+ \fC
906
+ .RS 0n
907
+ #define CMARK_OPT_GITHUB_PRE_LANG (1 << 11)
908
+ .RE
909
+ \f[]
910
+ .fi
911
+
912
+ .PP
913
+ Use GitHub\-style tags for code blocks instead of .
914
+
903
915
  .SS
904
916
  Version information
905
917
 
@@ -1260,6 +1260,12 @@ static void S_process_line(cmark_parser *parser, const unsigned char *buffer,
1260
1260
  input.len = parser->curline.size;
1261
1261
  input.alloc = 0;
1262
1262
 
1263
+ // Skip UTF-8 BOM.
1264
+ if (parser->line_number == 0 &&
1265
+ input.len >= 3 &&
1266
+ memcmp(input.data, "\xef\xbb\xbf", 3) == 0)
1267
+ parser->offset += 3;
1268
+
1263
1269
  parser->line_number++;
1264
1270
 
1265
1271
  last_matched_container = check_open_blocks(parser, &input, &all_matched);
@@ -691,6 +691,11 @@ char *cmark_render_latex_with_mem(cmark_node *root, int options, int width, cmar
691
691
  */
692
692
  #define CMARK_OPT_SMART (1 << 10)
693
693
 
694
+ /** Use GitHub-style <pre lang="x"> tags for code blocks instead of <pre><code
695
+ * class="language-x">.
696
+ */
697
+ #define CMARK_OPT_GITHUB_PRE_LANG (1 << 11)
698
+
694
699
  /**
695
700
  * ## Version information
696
701
  */
@@ -183,15 +183,27 @@ static int S_render_node(cmark_html_renderer *renderer, cmark_node *node,
183
183
  first_tag += 1;
184
184
  }
185
185
 
186
- cmark_strbuf_puts(html, "<pre");
187
- cmark_html_render_sourcepos(node, html, options);
188
- cmark_strbuf_puts(html, "><code class=\"language-");
189
- escape_html(html, node->as.code.info.data, first_tag);
190
- cmark_strbuf_puts(html, "\">");
186
+ if (options & CMARK_OPT_GITHUB_PRE_LANG) {
187
+ cmark_strbuf_puts(html, "<pre");
188
+ cmark_html_render_sourcepos(node, html, options);
189
+ cmark_strbuf_puts(html, " lang=\"");
190
+ escape_html(html, node->as.code.info.data, first_tag);
191
+ cmark_strbuf_puts(html, "\">");
192
+ } else {
193
+ cmark_strbuf_puts(html, "<pre");
194
+ cmark_html_render_sourcepos(node, html, options);
195
+ cmark_strbuf_puts(html, "><code class=\"language-");
196
+ escape_html(html, node->as.code.info.data, first_tag);
197
+ cmark_strbuf_puts(html, "\">");
198
+ }
191
199
  }
192
200
 
193
201
  escape_html(html, node->as.code.literal.data, node->as.code.literal.len);
194
- cmark_strbuf_puts(html, "</code></pre>\n");
202
+ if (options & CMARK_OPT_GITHUB_PRE_LANG) {
203
+ cmark_strbuf_puts(html, "</pre>\n");
204
+ } else {
205
+ cmark_strbuf_puts(html, "</code></pre>\n");
206
+ }
195
207
  break;
196
208
 
197
209
  case CMARK_NODE_HTML_BLOCK:
@@ -30,19 +30,20 @@ typedef enum {
30
30
  void print_usage() {
31
31
  printf("Usage: cmark [FILE*]\n");
32
32
  printf("Options:\n");
33
- printf(" --to, -t FORMAT Specify output format (html, xml, man, "
33
+ printf(" --to, -t FORMAT Specify output format (html, xml, man, "
34
34
  "commonmark, latex)\n");
35
- printf(" --width WIDTH Specify wrap width (default 0 = nowrap)\n");
36
- printf(" --sourcepos Include source position attribute\n");
37
- printf(" --hardbreaks Treat newlines as hard line breaks\n");
38
- printf(" --nobreaks Render soft line breaks as spaces\n");
39
- printf(" --safe Suppress raw HTML and dangerous URLs\n");
40
- printf(" --smart Use smart punctuation\n");
41
- printf(" --normalize Consolidate adjacent text nodes\n");
35
+ printf(" --width WIDTH Specify wrap width (default 0 = nowrap)\n");
36
+ printf(" --sourcepos Include source position attribute\n");
37
+ printf(" --hardbreaks Treat newlines as hard line breaks\n");
38
+ printf(" --nobreaks Render soft line breaks as spaces\n");
39
+ printf(" --safe Suppress raw HTML and dangerous URLs\n");
40
+ printf(" --smart Use smart punctuation\n");
41
+ printf(" --github-pre-lang Use GitHub-style <pre lang> for code blocks\n");
42
+ printf(" --normalize Consolidate adjacent text nodes\n");
42
43
  printf(" -e, --extension EXTENSION_NAME Specify an extension name to use\n");
43
44
  printf(" --list-extensions List available extensions and quit\n");
44
- printf(" --help, -h Print usage information\n");
45
- printf(" --version Print version\n");
45
+ printf(" --help, -h Print usage information\n");
46
+ printf(" --version Print version\n");
46
47
  }
47
48
 
48
49
  static bool print_document(cmark_node *document, writer_format writer,
@@ -131,6 +132,8 @@ int main(int argc, char *argv[]) {
131
132
  options |= CMARK_OPT_NOBREAKS;
132
133
  } else if (strcmp(argv[i], "--smart") == 0) {
133
134
  options |= CMARK_OPT_SMART;
135
+ } else if (strcmp(argv[i], "--github-pre-lang") == 0) {
136
+ options |= CMARK_OPT_GITHUB_PRE_LANG;
134
137
  } else if (strcmp(argv[i], "--safe") == 0) {
135
138
  options |= CMARK_OPT_SAFE;
136
139
  } else if (strcmp(argv[i], "--normalize") == 0) {
@@ -18,6 +18,7 @@ module CommonMarker
18
18
  define :SOURCEPOS, (1 << 1)
19
19
  define :HARDBREAKS, (1 << 2)
20
20
  define :SAFE, (1 << 3)
21
+ define :GITHUB_PRE_LANG, (1 << 11)
21
22
  end
22
23
 
23
24
  def self.process_options(option, type)
@@ -1,3 +1,3 @@
1
1
  module CommonMarker
2
- VERSION = '0.14.9'.freeze
2
+ VERSION = '0.14.11'.freeze
3
3
  end
@@ -67,7 +67,7 @@ class CommonMarker::TestMaliciousness < Minitest::Test
67
67
  err = assert_raises TypeError do
68
68
  CommonMarker.render_html("foo \n baz", [:SMART])
69
69
  end
70
- assert_equal err.message, 'option \':smart\' does not exist for CommonMarker::Config::Render'
70
+ assert_equal err.message, 'option \':SMART\' does not exist for CommonMarker::Config::Render'
71
71
 
72
72
  assert_raises TypeError do
73
73
  CommonMarker.render_doc("foo \n baz", 123)
@@ -118,8 +118,8 @@ class CommonMarker::TestMaliciousness < Minitest::Test
118
118
  end
119
119
 
120
120
  def test_bad_walking
121
- assert_equal @doc.parent, nil
122
- assert_equal @doc.previous, nil
121
+ assert_nil @doc.parent
122
+ assert_nil @doc.previous
123
123
  end
124
124
 
125
125
  def test_bad_insertion
data/test/test_node.rb CHANGED
@@ -23,10 +23,13 @@ class TestNode < Minitest::Test
23
23
 
24
24
  def test_deprecated_each_child
25
25
  nodes = []
26
- @doc.first_child.each_child do |node|
27
- nodes << node.type
26
+ out, err = capture_io do
27
+ @doc.first_child.each_child do |node|
28
+ nodes << node.type
29
+ end
28
30
  end
29
31
  assert_equal [:text, :emph, :text, :text], nodes
32
+ assert_match /`each_child` is deprecated/, err
30
33
  end
31
34
 
32
35
  def test_select
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonmarker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.9
4
+ version: 0.14.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-20 00:00:00.000000000 Z
11
+ date: 2017-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-enum
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 4.1.0
103
+ version: '5.1'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 4.1.0
110
+ version: '5.1'
111
111
  description: A fast, safe, extensible parser for CommonMark. This wraps the official
112
112
  libcmark library.
113
113
  email:
@@ -164,138 +164,6 @@ files:
164
164
  - ext/commonmarker/cmark/bench/statistics.py
165
165
  - ext/commonmarker/cmark/bench/stats.py
166
166
  - ext/commonmarker/cmark/benchmarks.md
167
- - ext/commonmarker/cmark/build/CMakeCache.txt
168
- - ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CMakeCCompiler.cmake
169
- - ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CMakeCXXCompiler.cmake
170
- - ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CMakeDetermineCompilerABI_C.bin
171
- - ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CMakeDetermineCompilerABI_CXX.bin
172
- - ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CMakeSystem.cmake
173
- - ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CompilerIdC/CMakeCCompilerId.c
174
- - ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CompilerIdC/a.out
175
- - ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
176
- - ext/commonmarker/cmark/build/CMakeFiles/3.7.2/CompilerIdCXX/a.out
177
- - ext/commonmarker/cmark/build/CMakeFiles/CMakeDirectoryInformation.cmake
178
- - ext/commonmarker/cmark/build/CMakeFiles/CMakeError.log
179
- - ext/commonmarker/cmark/build/CMakeFiles/CMakeOutput.log
180
- - ext/commonmarker/cmark/build/CMakeFiles/Makefile.cmake
181
- - ext/commonmarker/cmark/build/CMakeFiles/Makefile2
182
- - ext/commonmarker/cmark/build/CMakeFiles/TargetDirectories.txt
183
- - ext/commonmarker/cmark/build/CMakeFiles/cmake.check_cache
184
- - ext/commonmarker/cmark/build/CMakeFiles/feature_tests.bin
185
- - ext/commonmarker/cmark/build/CMakeFiles/feature_tests.c
186
- - ext/commonmarker/cmark/build/CMakeFiles/feature_tests.cxx
187
- - ext/commonmarker/cmark/build/CMakeFiles/progress.marks
188
- - ext/commonmarker/cmark/build/CTestTestfile.cmake
189
- - ext/commonmarker/cmark/build/Makefile
190
- - ext/commonmarker/cmark/build/api_test/CMakeFiles/CMakeDirectoryInformation.cmake
191
- - ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/DependInfo.cmake
192
- - ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/build.make
193
- - ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/cmake_clean.cmake
194
- - ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/depend.make
195
- - ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/flags.make
196
- - ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/link.txt
197
- - ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/progress.make
198
- - ext/commonmarker/cmark/build/api_test/CMakeFiles/progress.marks
199
- - ext/commonmarker/cmark/build/api_test/Makefile
200
- - ext/commonmarker/cmark/build/api_test/cmake_install.cmake
201
- - ext/commonmarker/cmark/build/cmake_install.cmake
202
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/CMakeDirectoryInformation.cmake
203
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/DependInfo.cmake
204
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/build.make
205
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/cmake_clean.cmake
206
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/depend.make
207
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/flags.make
208
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/link.txt
209
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions.dir/progress.make
210
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/C.includecache
211
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/DependInfo.cmake
212
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/autolink.c.o
213
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/build.make
214
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/cmake_clean.cmake
215
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/cmake_clean_target.cmake
216
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/core-extensions.c.o
217
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/depend.internal
218
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/depend.make
219
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/ext_scanners.c.o
220
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/flags.make
221
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/link.txt
222
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/progress.make
223
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/strikethrough.c.o
224
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/table.c.o
225
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/tagfilter.c.o
226
- - ext/commonmarker/cmark/build/extensions/CMakeFiles/progress.marks
227
- - ext/commonmarker/cmark/build/extensions/Makefile
228
- - ext/commonmarker/cmark/build/extensions/cmake_install.cmake
229
- - ext/commonmarker/cmark/build/extensions/cmarkextensions_export.h
230
- - ext/commonmarker/cmark/build/extensions/libcmarkextensions.a
231
- - ext/commonmarker/cmark/build/man/CMakeFiles/CMakeDirectoryInformation.cmake
232
- - ext/commonmarker/cmark/build/man/CMakeFiles/progress.marks
233
- - ext/commonmarker/cmark/build/man/Makefile
234
- - ext/commonmarker/cmark/build/man/cmake_install.cmake
235
- - ext/commonmarker/cmark/build/src/CMakeFiles/CMakeDirectoryInformation.cmake
236
- - ext/commonmarker/cmark/build/src/CMakeFiles/Export/lib/cmake/cmark-release.cmake
237
- - ext/commonmarker/cmark/build/src/CMakeFiles/Export/lib/cmake/cmark.cmake
238
- - ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/DependInfo.cmake
239
- - ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/build.make
240
- - ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmake_clean.cmake
241
- - ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/depend.make
242
- - ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/flags.make
243
- - ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/link.txt
244
- - ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/progress.make
245
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/DependInfo.cmake
246
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/build.make
247
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmake_clean.cmake
248
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/depend.make
249
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/flags.make
250
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/link.txt
251
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/progress.make
252
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/C.includecache
253
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/DependInfo.cmake
254
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/arena.c.o
255
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/blocks.c.o
256
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/buffer.c.o
257
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/build.make
258
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean.cmake
259
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean_target.cmake
260
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark.c.o
261
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark_ctype.c.o
262
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/commonmark.c.o
263
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.internal
264
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.make
265
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/flags.make
266
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_href_e.c.o
267
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_e.c.o
268
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_u.c.o
269
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/html.c.o
270
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/inlines.c.o
271
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/iterator.c.o
272
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/latex.c.o
273
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/link.txt
274
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/linked_list.c.o
275
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/man.c.o
276
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/node.c.o
277
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/plugin.c.o
278
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/progress.make
279
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/references.c.o
280
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/registry.c.o
281
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/render.c.o
282
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/scanners.c.o
283
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/syntax_extension.c.o
284
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/utf8.c.o
285
- - ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/xml.c.o
286
- - ext/commonmarker/cmark/build/src/CMakeFiles/progress.marks
287
- - ext/commonmarker/cmark/build/src/Makefile
288
- - ext/commonmarker/cmark/build/src/cmake_install.cmake
289
- - ext/commonmarker/cmark/build/src/cmark_export.h
290
- - ext/commonmarker/cmark/build/src/cmark_version.h
291
- - ext/commonmarker/cmark/build/src/config.h
292
- - ext/commonmarker/cmark/build/src/libcmark.a
293
- - ext/commonmarker/cmark/build/src/libcmark.pc
294
- - ext/commonmarker/cmark/build/testdir/CMakeFiles/CMakeDirectoryInformation.cmake
295
- - ext/commonmarker/cmark/build/testdir/CMakeFiles/progress.marks
296
- - ext/commonmarker/cmark/build/testdir/CTestTestfile.cmake
297
- - ext/commonmarker/cmark/build/testdir/Makefile
298
- - ext/commonmarker/cmark/build/testdir/cmake_install.cmake
299
167
  - ext/commonmarker/cmark/changelog.txt
300
168
  - ext/commonmarker/cmark/data/CaseFolding.txt
301
169
  - ext/commonmarker/cmark/extensions/CMakeLists.txt
@@ -1,469 +0,0 @@
1
- # This is the CMakeCache file.
2
- # For build in directory: /Users/gjtorikian/Developer/commonmarker/ext/commonmarker/cmark/build
3
- # It was generated by CMake: /usr/local/Cellar/cmake/3.7.2/bin/cmake
4
- # You can edit this file to change values found and used by cmake.
5
- # If you do not want to change any of the values, simply exit the editor.
6
- # If you do want to change a value, simply edit, save, and exit the editor.
7
- # The syntax for the file is as follows:
8
- # KEY:TYPE=VALUE
9
- # KEY is the name of a variable in the cache.
10
- # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
11
- # VALUE is the current value for the KEY.
12
-
13
- ########################
14
- # EXTERNAL cache entries
15
- ########################
16
-
17
- //Path to a program.
18
- CMAKE_AR:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ar
19
-
20
- //Choose the type of build, options are: Debug Profile Release
21
- // Asan Ubsan.
22
- CMAKE_BUILD_TYPE:STRING=Release
23
-
24
- //Enable/Disable color output during build.
25
- CMAKE_COLOR_MAKEFILE:BOOL=ON
26
-
27
- //CXX compiler
28
- CMAKE_CXX_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/c++
29
-
30
- //Flags used by the compiler during all build types.
31
- CMAKE_CXX_FLAGS:STRING=
32
-
33
- //Flags used by the C++ compiler during ASan builds.
34
- CMAKE_CXX_FLAGS_ASAN:STRING=-O1 -g -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls
35
-
36
- //Flags used by the compiler during debug builds.
37
- CMAKE_CXX_FLAGS_DEBUG:STRING=-g
38
-
39
- //Flags used by the compiler during release builds for minimum
40
- // size.
41
- CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
42
-
43
- //Flags used by the compiler during release builds.
44
- CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
45
-
46
- //Flags used by the compiler during release builds with debug info.
47
- CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
48
-
49
- //C compiler
50
- CMAKE_C_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/cc
51
-
52
- //Flags used by the compiler during all build types.
53
- CMAKE_C_FLAGS:STRING=-fPIC
54
-
55
- //Flags used by the C compiler during ASan builds.
56
- CMAKE_C_FLAGS_ASAN:STRING=-O1 -g -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls
57
-
58
- //Flags used by the compiler during debug builds.
59
- CMAKE_C_FLAGS_DEBUG:STRING=-g
60
-
61
- //Flags used by the compiler during release builds for minimum
62
- // size.
63
- CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
64
-
65
- //Flags used by the compiler during release builds.
66
- CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
67
-
68
- //Flags used by the compiler during release builds with debug info.
69
- CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
70
-
71
- //Flags used by the linker.
72
- CMAKE_EXE_LINKER_FLAGS:STRING=
73
-
74
- //Flags used for linking binaries during ASan builds.
75
- CMAKE_EXE_LINKER_FLAGS_ASAN:STRING=-fsanitize=address
76
-
77
- //Flags used by the linker during debug builds.
78
- CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
79
-
80
- //Flags used by the linker during release minsize builds.
81
- CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
82
-
83
- //Flags used by the linker during release builds.
84
- CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
85
-
86
- //Flags used by the linker during Release with Debug Info builds.
87
- CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
88
-
89
- //Enable/Disable output of compile commands during generation.
90
- CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF
91
-
92
- //user executables (bin)
93
- CMAKE_INSTALL_BINDIR:PATH=bin
94
-
95
- //read-only architecture-independent data (DATAROOTDIR)
96
- CMAKE_INSTALL_DATADIR:PATH=
97
-
98
- //read-only architecture-independent data root (share)
99
- CMAKE_INSTALL_DATAROOTDIR:PATH=share
100
-
101
- //documentation root (DATAROOTDIR/doc/PROJECT_NAME)
102
- CMAKE_INSTALL_DOCDIR:PATH=
103
-
104
- //C header files (include)
105
- CMAKE_INSTALL_INCLUDEDIR:PATH=include
106
-
107
- //info documentation (DATAROOTDIR/info)
108
- CMAKE_INSTALL_INFODIR:PATH=
109
-
110
- //object code libraries (lib)
111
- CMAKE_INSTALL_LIBDIR:PATH=lib
112
-
113
- //program executables (libexec)
114
- CMAKE_INSTALL_LIBEXECDIR:PATH=libexec
115
-
116
- //locale-dependent data (DATAROOTDIR/locale)
117
- CMAKE_INSTALL_LOCALEDIR:PATH=
118
-
119
- //modifiable single-machine data (var)
120
- CMAKE_INSTALL_LOCALSTATEDIR:PATH=var
121
-
122
- //man documentation (DATAROOTDIR/man)
123
- CMAKE_INSTALL_MANDIR:PATH=
124
-
125
- //Path to a program.
126
- CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool
127
-
128
- //C header files for non-gcc (/usr/include)
129
- CMAKE_INSTALL_OLDINCLUDEDIR:PATH=/usr/include
130
-
131
- //Install path prefix, prepended onto install directories.
132
- CMAKE_INSTALL_PREFIX:PATH=/usr/local
133
-
134
- //system admin executables (sbin)
135
- CMAKE_INSTALL_SBINDIR:PATH=sbin
136
-
137
- //modifiable architecture-independent data (com)
138
- CMAKE_INSTALL_SHAREDSTATEDIR:PATH=com
139
-
140
- //read-only single-machine data (etc)
141
- CMAKE_INSTALL_SYSCONFDIR:PATH=etc
142
-
143
- //Path to a program.
144
- CMAKE_LINKER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ld
145
-
146
- //Path to a program.
147
- CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
148
-
149
- //Flags used by the linker during the creation of modules.
150
- CMAKE_MODULE_LINKER_FLAGS:STRING=
151
-
152
- //Flags used by the linker during debug builds.
153
- CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
154
-
155
- //Flags used by the linker during release minsize builds.
156
- CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
157
-
158
- //Flags used by the linker during release builds.
159
- CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
160
-
161
- //Flags used by the linker during Release with Debug Info builds.
162
- CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
163
-
164
- //Path to a program.
165
- CMAKE_NM:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/nm
166
-
167
- //Path to a program.
168
- CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND
169
-
170
- //Path to a program.
171
- CMAKE_OBJDUMP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/objdump
172
-
173
- //Build architectures for OSX
174
- CMAKE_OSX_ARCHITECTURES:STRING=
175
-
176
- //Minimum OS X version to target for deployment (at runtime); newer
177
- // APIs weak linked. Set to empty string for default value.
178
- CMAKE_OSX_DEPLOYMENT_TARGET:STRING=
179
-
180
- //The product will be built against the headers and libraries located
181
- // inside the indicated SDK.
182
- CMAKE_OSX_SYSROOT:STRING=
183
-
184
- //Value Computed by CMake
185
- CMAKE_PROJECT_NAME:STATIC=cmark
186
-
187
- //Path to a program.
188
- CMAKE_RANLIB:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ranlib
189
-
190
- //Flags used by the linker during the creation of dll's.
191
- CMAKE_SHARED_LINKER_FLAGS:STRING=
192
-
193
- //Flags used by the shared libraries linker during ASan builds.
194
- CMAKE_SHARED_LINKER_FLAGS_ASAN:STRING=-fsanitize=address
195
-
196
- //Flags used by the linker during debug builds.
197
- CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
198
-
199
- //Flags used by the linker during release minsize builds.
200
- CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
201
-
202
- //Flags used by the linker during release builds.
203
- CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
204
-
205
- //Flags used by the linker during Release with Debug Info builds.
206
- CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
207
-
208
- //If set, runtime paths are not added when installing shared libraries,
209
- // but are added when building.
210
- CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
211
-
212
- //If set, runtime paths are not added when using shared libraries.
213
- CMAKE_SKIP_RPATH:BOOL=NO
214
-
215
- //Flags used by the linker during the creation of static libraries.
216
- CMAKE_STATIC_LINKER_FLAGS:STRING=
217
-
218
- //Flags used by the linker during debug builds.
219
- CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
220
-
221
- //Flags used by the linker during release minsize builds.
222
- CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
223
-
224
- //Flags used by the linker during release builds.
225
- CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
226
-
227
- //Flags used by the linker during Release with Debug Info builds.
228
- CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
229
-
230
- //Path to a program.
231
- CMAKE_STRIP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/strip
232
-
233
- //If this value is on, makefiles will be generated without the
234
- // .SILENT directive, and all commands will be echoed to the console
235
- // during the make. This is useful for debugging only. With Visual
236
- // Studio IDE projects all commands are done without /nologo.
237
- CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
238
-
239
- //Build shared libcmark library
240
- CMARK_SHARED:BOOL=ON
241
-
242
- //Build static libcmark library
243
- CMARK_STATIC:BOOL=ON
244
-
245
- //Build cmark tests and enable testing
246
- CMARK_TESTS:BOOL=ON
247
-
248
- //Set the installation directory for libraries.
249
- LIB_INSTALL_DIR:STRING=lib
250
-
251
- //Path to a program.
252
- PYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python
253
-
254
- //Use HIDDEN visibility support if available.
255
- USE_COMPILER_HIDDEN_VISIBILITY:BOOL=ON
256
-
257
- //Value Computed by CMake
258
- cmark_BINARY_DIR:STATIC=/Users/gjtorikian/Developer/commonmarker/ext/commonmarker/cmark/build
259
-
260
- //Value Computed by CMake
261
- cmark_SOURCE_DIR:STATIC=/Users/gjtorikian/Developer/commonmarker/ext/commonmarker/cmark
262
-
263
- //Dependencies for target
264
- libcmark_LIB_DEPENDS:STATIC=
265
-
266
- //Dependencies for target
267
- libcmark_static_LIB_DEPENDS:STATIC=
268
-
269
- //Dependencies for the target
270
- libcmarkextensions_LIB_DEPENDS:STATIC=general;libcmark;
271
-
272
- //Dependencies for target
273
- libcmarkextensions_static_LIB_DEPENDS:STATIC=
274
-
275
-
276
- ########################
277
- # INTERNAL cache entries
278
- ########################
279
-
280
- //ADVANCED property for variable: CMAKE_AR
281
- CMAKE_AR-ADVANCED:INTERNAL=1
282
- //This is the directory where this CMakeCache.txt was created
283
- CMAKE_CACHEFILE_DIR:INTERNAL=/Users/gjtorikian/Developer/commonmarker/ext/commonmarker/cmark/build
284
- //Major version of cmake used to create the current loaded cache
285
- CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
286
- //Minor version of cmake used to create the current loaded cache
287
- CMAKE_CACHE_MINOR_VERSION:INTERNAL=7
288
- //Patch version of cmake used to create the current loaded cache
289
- CMAKE_CACHE_PATCH_VERSION:INTERNAL=2
290
- //ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
291
- CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
292
- //Path to CMake executable.
293
- CMAKE_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.7.2/bin/cmake
294
- //Path to cpack program executable.
295
- CMAKE_CPACK_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.7.2/bin/cpack
296
- //Path to ctest program executable.
297
- CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.7.2/bin/ctest
298
- //ADVANCED property for variable: CMAKE_CXX_COMPILER
299
- CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
300
- //ADVANCED property for variable: CMAKE_CXX_FLAGS
301
- CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
302
- //ADVANCED property for variable: CMAKE_CXX_FLAGS_ASAN
303
- CMAKE_CXX_FLAGS_ASAN-ADVANCED:INTERNAL=1
304
- //ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
305
- CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
306
- //ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
307
- CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
308
- //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
309
- CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
310
- //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
311
- CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
312
- //ADVANCED property for variable: CMAKE_C_COMPILER
313
- CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
314
- //ADVANCED property for variable: CMAKE_C_FLAGS
315
- CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
316
- //ADVANCED property for variable: CMAKE_C_FLAGS_ASAN
317
- CMAKE_C_FLAGS_ASAN-ADVANCED:INTERNAL=1
318
- //ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
319
- CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
320
- //ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
321
- CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
322
- //ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
323
- CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
324
- //ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
325
- CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
326
- //Path to cache edit program executable.
327
- CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.7.2/bin/ccmake
328
- //Executable file format
329
- CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
330
- //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
331
- CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
332
- //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_ASAN
333
- CMAKE_EXE_LINKER_FLAGS_ASAN-ADVANCED:INTERNAL=1
334
- //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
335
- CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
336
- //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
337
- CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
338
- //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
339
- CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
340
- //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
341
- CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
342
- //ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
343
- CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
344
- //Name of external makefile project generator.
345
- CMAKE_EXTRA_GENERATOR:INTERNAL=
346
- //Name of generator.
347
- CMAKE_GENERATOR:INTERNAL=Unix Makefiles
348
- //Name of generator platform.
349
- CMAKE_GENERATOR_PLATFORM:INTERNAL=
350
- //Name of generator toolset.
351
- CMAKE_GENERATOR_TOOLSET:INTERNAL=
352
- //Source directory with the top level CMakeLists.txt file for this
353
- // project
354
- CMAKE_HOME_DIRECTORY:INTERNAL=/Users/gjtorikian/Developer/commonmarker/ext/commonmarker/cmark
355
- //ADVANCED property for variable: CMAKE_INSTALL_BINDIR
356
- CMAKE_INSTALL_BINDIR-ADVANCED:INTERNAL=1
357
- //ADVANCED property for variable: CMAKE_INSTALL_DATADIR
358
- CMAKE_INSTALL_DATADIR-ADVANCED:INTERNAL=1
359
- //ADVANCED property for variable: CMAKE_INSTALL_DATAROOTDIR
360
- CMAKE_INSTALL_DATAROOTDIR-ADVANCED:INTERNAL=1
361
- //ADVANCED property for variable: CMAKE_INSTALL_DOCDIR
362
- CMAKE_INSTALL_DOCDIR-ADVANCED:INTERNAL=1
363
- //ADVANCED property for variable: CMAKE_INSTALL_INCLUDEDIR
364
- CMAKE_INSTALL_INCLUDEDIR-ADVANCED:INTERNAL=1
365
- //ADVANCED property for variable: CMAKE_INSTALL_INFODIR
366
- CMAKE_INSTALL_INFODIR-ADVANCED:INTERNAL=1
367
- //ADVANCED property for variable: CMAKE_INSTALL_LIBDIR
368
- CMAKE_INSTALL_LIBDIR-ADVANCED:INTERNAL=1
369
- //ADVANCED property for variable: CMAKE_INSTALL_LIBEXECDIR
370
- CMAKE_INSTALL_LIBEXECDIR-ADVANCED:INTERNAL=1
371
- //ADVANCED property for variable: CMAKE_INSTALL_LOCALEDIR
372
- CMAKE_INSTALL_LOCALEDIR-ADVANCED:INTERNAL=1
373
- //ADVANCED property for variable: CMAKE_INSTALL_LOCALSTATEDIR
374
- CMAKE_INSTALL_LOCALSTATEDIR-ADVANCED:INTERNAL=1
375
- //ADVANCED property for variable: CMAKE_INSTALL_MANDIR
376
- CMAKE_INSTALL_MANDIR-ADVANCED:INTERNAL=1
377
- //ADVANCED property for variable: CMAKE_INSTALL_NAME_TOOL
378
- CMAKE_INSTALL_NAME_TOOL-ADVANCED:INTERNAL=1
379
- //ADVANCED property for variable: CMAKE_INSTALL_OLDINCLUDEDIR
380
- CMAKE_INSTALL_OLDINCLUDEDIR-ADVANCED:INTERNAL=1
381
- //ADVANCED property for variable: CMAKE_INSTALL_SBINDIR
382
- CMAKE_INSTALL_SBINDIR-ADVANCED:INTERNAL=1
383
- //ADVANCED property for variable: CMAKE_INSTALL_SHAREDSTATEDIR
384
- CMAKE_INSTALL_SHAREDSTATEDIR-ADVANCED:INTERNAL=1
385
- //ADVANCED property for variable: CMAKE_INSTALL_SYSCONFDIR
386
- CMAKE_INSTALL_SYSCONFDIR-ADVANCED:INTERNAL=1
387
- //ADVANCED property for variable: CMAKE_LINKER
388
- CMAKE_LINKER-ADVANCED:INTERNAL=1
389
- //ADVANCED property for variable: CMAKE_MAKE_PROGRAM
390
- CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
391
- //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
392
- CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
393
- //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
394
- CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
395
- //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
396
- CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
397
- //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
398
- CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
399
- //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
400
- CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
401
- //ADVANCED property for variable: CMAKE_NM
402
- CMAKE_NM-ADVANCED:INTERNAL=1
403
- //number of local generators
404
- CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=6
405
- //ADVANCED property for variable: CMAKE_OBJCOPY
406
- CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
407
- //ADVANCED property for variable: CMAKE_OBJDUMP
408
- CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
409
- //ADVANCED property for variable: CMAKE_RANLIB
410
- CMAKE_RANLIB-ADVANCED:INTERNAL=1
411
- //Path to CMake installation.
412
- CMAKE_ROOT:INTERNAL=/usr/local/Cellar/cmake/3.7.2/share/cmake
413
- //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
414
- CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
415
- //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_ASAN
416
- CMAKE_SHARED_LINKER_FLAGS_ASAN-ADVANCED:INTERNAL=1
417
- //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
418
- CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
419
- //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
420
- CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
421
- //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
422
- CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
423
- //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
424
- CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
425
- //ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
426
- CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
427
- //ADVANCED property for variable: CMAKE_SKIP_RPATH
428
- CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
429
- //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
430
- CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
431
- //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
432
- CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
433
- //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
434
- CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
435
- //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
436
- CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
437
- //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
438
- CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
439
- //ADVANCED property for variable: CMAKE_STRIP
440
- CMAKE_STRIP-ADVANCED:INTERNAL=1
441
- //uname command
442
- CMAKE_UNAME:INTERNAL=/usr/bin/uname
443
- //ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
444
- CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
445
- //Compiler support for a deprecated attribute
446
- COMPILER_HAS_DEPRECATED:INTERNAL=1
447
- //Test COMPILER_HAS_DEPRECATED_ATTR
448
- COMPILER_HAS_DEPRECATED_ATTR:INTERNAL=1
449
- //Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
450
- COMPILER_HAS_HIDDEN_INLINE_VISIBILITY:INTERNAL=1
451
- //Test COMPILER_HAS_HIDDEN_VISIBILITY
452
- COMPILER_HAS_HIDDEN_VISIBILITY:INTERNAL=1
453
- //Test HAVE_FLAG_ADDRESS_SANITIZER
454
- HAVE_FLAG_ADDRESS_SANITIZER:INTERNAL=
455
- //Test HAVE_FLAG_SANITIZE_ADDRESS
456
- HAVE_FLAG_SANITIZE_ADDRESS:INTERNAL=1
457
- //Have include stdbool.h
458
- HAVE_STDBOOL_H:INTERNAL=1
459
- //Test HAVE___ATTRIBUTE__
460
- HAVE___ATTRIBUTE__:INTERNAL=1
461
- //Test HAVE___BUILTIN_EXPECT
462
- HAVE___BUILTIN_EXPECT:INTERNAL=1
463
- //ADVANCED property for variable: PYTHON_EXECUTABLE
464
- PYTHON_EXECUTABLE-ADVANCED:INTERNAL=1
465
- //ADVANCED property for variable: USE_COMPILER_HIDDEN_VISIBILITY
466
- USE_COMPILER_HIDDEN_VISIBILITY-ADVANCED:INTERNAL=1
467
- //CMAKE_INSTALL_PREFIX during last run
468
- _GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX:INTERNAL=/usr/local
469
-