apex-ruby 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +119 -0
- data/apex-ruby.gemspec +31 -0
- data/ext/apex_ext/apex_ext.c +215 -0
- data/ext/apex_ext/apex_src/BENCHMARK.md +32 -0
- data/ext/apex_ext/apex_src/BENCHMARK_COMPARISON.md +67 -0
- data/ext/apex_ext/apex_src/CHANGELOG.md +2454 -0
- data/ext/apex_ext/apex_src/CMakeLists.txt +454 -0
- data/ext/apex_ext/apex_src/Dockerfile.linux-build +15 -0
- data/ext/apex_ext/apex_src/Formula/apex.rb +38 -0
- data/ext/apex_ext/apex_src/Info.plist.in +27 -0
- data/ext/apex_ext/apex_src/LICENSE +21 -0
- data/ext/apex_ext/apex_src/Package.swift +160 -0
- data/ext/apex_ext/apex_src/PackageSupport/README.md +17 -0
- data/ext/apex_ext/apex_src/PackageSupport/cmark-gfm/cmark-gfm_export.h +20 -0
- data/ext/apex_ext/apex_src/PackageSupport/cmark-gfm/cmark-gfm_version.h +14 -0
- data/ext/apex_ext/apex_src/PackageSupport/cmark-gfm/cmark_gfm_spm_stub.c +4 -0
- data/ext/apex_ext/apex_src/PackageSupport/cmark-gfm/config.h +41 -0
- data/ext/apex_ext/apex_src/README.md +452 -0
- data/ext/apex_ext/apex_src/VERSION +1 -0
- data/ext/apex_ext/apex_src/apex-header-2-rb@2x.webp +0 -0
- data/ext/apex_ext/apex_src/apex-plugins.json.example +20 -0
- data/ext/apex_ext/apex_src/apex.pc.in +11 -0
- data/ext/apex_ext/apex_src/cli/main.c +2720 -0
- data/ext/apex_ext/apex_src/debug_test.sh +22 -0
- data/ext/apex_ext/apex_src/docs/API_REFERENCE.md +451 -0
- data/ext/apex_ext/apex_src/docs/ARCHITECTURE.md +166 -0
- data/ext/apex_ext/apex_src/docs/CMARK_INTEGRATION.md +220 -0
- data/ext/apex_ext/apex_src/docs/CRITICMARKUP.md +501 -0
- data/ext/apex_ext/apex_src/docs/DEBUGGING.md +73 -0
- data/ext/apex_ext/apex_src/docs/FINAL_STATUS.md +391 -0
- data/ext/apex_ext/apex_src/docs/FINAL_STATUS_UPDATE.md +237 -0
- data/ext/apex_ext/apex_src/docs/FUTURE_FEATURES.md +456 -0
- data/ext/apex_ext/apex_src/docs/IAL_FEATURES.md +210 -0
- data/ext/apex_ext/apex_src/docs/IAL_STATUS.md +344 -0
- data/ext/apex_ext/apex_src/docs/INTEGRATION_EXAMPLE.m +144 -0
- data/ext/apex_ext/apex_src/docs/LIMITATIONS_RESOLVED.md +278 -0
- data/ext/apex_ext/apex_src/docs/OUTPUT_MODES.md +321 -0
- data/ext/apex_ext/apex_src/docs/PROGRESS.md +167 -0
- data/ext/apex_ext/apex_src/docs/STANDALONE_FEATURE.md +174 -0
- data/ext/apex_ext/apex_src/docs/TABLE_SPANS_STATUS.md +243 -0
- data/ext/apex_ext/apex_src/docs/TEST_COVERAGE.md +316 -0
- data/ext/apex_ext/apex_src/docs/USER_GUIDE.md +803 -0
- data/ext/apex_ext/apex_src/docs/WIKI_LINKS_ISSUE.md +91 -0
- data/ext/apex_ext/apex_src/documentation/README.md +160 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex Command Line Options.cheatsheet.txt +365 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Info.plist +24 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/C-API.html +1737 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Citations.html +1420 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Command-Line-Options.html +3574 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Configuration.html +1603 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Credits.html +910 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Examples.html +1168 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Getting-Started.html +1003 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Header-IDs.html +1308 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Home.html +1078 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Inline-Attribute-Lists.html +1622 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Installation.html +1168 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Limitations-and-Roadmap.html +1698 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Metadata-Transforms.html +1531 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Modes.html +1980 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Multi-File-Documents.html +1368 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Pandoc-Integration.html +1151 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Plugins.html +2861 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Syntax.html +3981 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Troubleshooting.html +1454 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Usage.html +1200 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Xcode-Integration.html +2066 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/docSet.dsidx +0 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/optimizedIndex.dsidx +0 -0
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/tempOptimizedIndex.dsidx +0 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Info.plist +22 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans.woff +0 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Bold.woff +0 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Bold_Italic.woff +0 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Extrabold.woff +0 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Extrabold_Italic.woff +0 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Italic.woff +0 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Semibold.woff +0 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Semibold_Italic.woff +0 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/index.html +914 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/style.css +399 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/docSet.dsidx +0 -0
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/optimizedIndex.dsidx +0 -0
- data/ext/apex_ext/apex_src/documentation/generate_app_docs.rb +772 -0
- data/ext/apex_ext/apex_src/documentation/generate_app_docs_ai.rb +678 -0
- data/ext/apex_ext/apex_src/documentation/generate_docset.rb +873 -0
- data/ext/apex_ext/apex_src/documentation/generate_single_html.rb +733 -0
- data/ext/apex_ext/apex_src/documentation/html/apex-docs.html +17073 -0
- data/ext/apex_ext/apex_src/documentation/shared_scripts.js +64 -0
- data/ext/apex_ext/apex_src/documentation/shared_styles.css +646 -0
- data/ext/apex_ext/apex_src/documentation/transform_for_app.example.md +260 -0
- data/ext/apex_ext/apex_src/examples/bracketed_spans_demo.md +119 -0
- data/ext/apex_ext/apex_src/examples/emoji_span_plugin.yml +11 -0
- data/ext/apex_ext/apex_src/examples/example.html +53 -0
- data/ext/apex_ext/apex_src/examples/example.md +85 -0
- data/ext/apex_ext/apex_src/examples/fenced_divs_demo.md +158 -0
- data/ext/apex_ext/apex_src/examples/kbd.md +8 -0
- data/ext/apex_ext/apex_src/examples/kbd_plugin.rb +250 -0
- data/ext/apex_ext/apex_src/examples/kbd_plugin.yml +9 -0
- data/ext/apex_ext/apex_src/icon/apexicon-outline-black.png +0 -0
- data/ext/apex_ext/apex_src/icon/apexicon-outline-black@2x.png +0 -0
- data/ext/apex_ext/apex_src/icon/apexicon-outline-mark.png +0 -0
- data/ext/apex_ext/apex_src/icon/apexicon-outline-mark@2x.png +0 -0
- data/ext/apex_ext/apex_src/icon/apexicon-outline-white.png +0 -0
- data/ext/apex_ext/apex_src/icon/apexicon-outline-white@2x.png +0 -0
- data/ext/apex_ext/apex_src/icon/apexicon.png +0 -0
- data/ext/apex_ext/apex_src/icon/apexicon@2x.png +0 -0
- data/ext/apex_ext/apex_src/include/apex/apex.h +247 -0
- data/ext/apex_ext/apex_src/include/apex/buffer.h +93 -0
- data/ext/apex_ext/apex_src/include/apex/module.modulemap +16 -0
- data/ext/apex_ext/apex_src/include/apex/parser.h +150 -0
- data/ext/apex_ext/apex_src/include/apex/renderer.h +39 -0
- data/ext/apex_ext/apex_src/man/apex-config.5 +374 -0
- data/ext/apex_ext/apex_src/man/apex-config.5.md +260 -0
- data/ext/apex_ext/apex_src/man/apex-plugins.7 +456 -0
- data/ext/apex_ext/apex_src/man/apex-plugins.7.md +365 -0
- data/ext/apex_ext/apex_src/man/apex.1 +828 -0
- data/ext/apex_ext/apex_src/man/apex.1.md +643 -0
- data/ext/apex_ext/apex_src/man/apex.1.new +338 -0
- data/ext/apex_ext/apex_src/objc/Apex.swift +237 -0
- data/ext/apex_ext/apex_src/objc/NSString+Apex.h +117 -0
- data/ext/apex_ext/apex_src/objc/NSString+Apex.m +332 -0
- data/ext/apex_ext/apex_src/src/_README.md +358 -0
- data/ext/apex_ext/apex_src/src/apex.c +6326 -0
- data/ext/apex_ext/apex_src/src/buffer.c +93 -0
- data/ext/apex_ext/apex_src/src/extensions/abbreviations.c +362 -0
- data/ext/apex_ext/apex_src/src/extensions/abbreviations.h +45 -0
- data/ext/apex_ext/apex_src/src/extensions/advanced_footnotes.c +184 -0
- data/ext/apex_ext/apex_src/src/extensions/advanced_footnotes.h +50 -0
- data/ext/apex_ext/apex_src/src/extensions/advanced_tables.c +1897 -0
- data/ext/apex_ext/apex_src/src/extensions/advanced_tables.h +42 -0
- data/ext/apex_ext/apex_src/src/extensions/callouts.c +215 -0
- data/ext/apex_ext/apex_src/src/extensions/callouts.h +53 -0
- data/ext/apex_ext/apex_src/src/extensions/citations.c +2042 -0
- data/ext/apex_ext/apex_src/src/extensions/citations.h +163 -0
- data/ext/apex_ext/apex_src/src/extensions/critic.c +329 -0
- data/ext/apex_ext/apex_src/src/extensions/critic.h +48 -0
- data/ext/apex_ext/apex_src/src/extensions/definition_list.c +1670 -0
- data/ext/apex_ext/apex_src/src/extensions/definition_list.h +42 -0
- data/ext/apex_ext/apex_src/src/extensions/emoji.c +710 -0
- data/ext/apex_ext/apex_src/src/extensions/emoji.h +38 -0
- data/ext/apex_ext/apex_src/src/extensions/emoji_data.h +942 -0
- data/ext/apex_ext/apex_src/src/extensions/fenced_divs.c +925 -0
- data/ext/apex_ext/apex_src/src/extensions/fenced_divs.h +43 -0
- data/ext/apex_ext/apex_src/src/extensions/github-emoji.txt +869 -0
- data/ext/apex_ext/apex_src/src/extensions/grid_tables.c +1121 -0
- data/ext/apex_ext/apex_src/src/extensions/grid_tables.h +33 -0
- data/ext/apex_ext/apex_src/src/extensions/header_ids.c +626 -0
- data/ext/apex_ext/apex_src/src/extensions/header_ids.h +60 -0
- data/ext/apex_ext/apex_src/src/extensions/highlight.c +135 -0
- data/ext/apex_ext/apex_src/src/extensions/highlight.h +16 -0
- data/ext/apex_ext/apex_src/src/extensions/html_markdown.c +408 -0
- data/ext/apex_ext/apex_src/src/extensions/html_markdown.h +42 -0
- data/ext/apex_ext/apex_src/src/extensions/ial.c +4084 -0
- data/ext/apex_ext/apex_src/src/extensions/ial.h +145 -0
- data/ext/apex_ext/apex_src/src/extensions/includes.c +1536 -0
- data/ext/apex_ext/apex_src/src/extensions/includes.h +54 -0
- data/ext/apex_ext/apex_src/src/extensions/index.c +967 -0
- data/ext/apex_ext/apex_src/src/extensions/index.h +90 -0
- data/ext/apex_ext/apex_src/src/extensions/inline_footnotes.c +205 -0
- data/ext/apex_ext/apex_src/src/extensions/inline_footnotes.h +34 -0
- data/ext/apex_ext/apex_src/src/extensions/inline_tables.c +332 -0
- data/ext/apex_ext/apex_src/src/extensions/inline_tables.h +13 -0
- data/ext/apex_ext/apex_src/src/extensions/insert.c +248 -0
- data/ext/apex_ext/apex_src/src/extensions/insert.h +18 -0
- data/ext/apex_ext/apex_src/src/extensions/math.c +279 -0
- data/ext/apex_ext/apex_src/src/extensions/math.h +32 -0
- data/ext/apex_ext/apex_src/src/extensions/metadata.c +3046 -0
- data/ext/apex_ext/apex_src/src/extensions/metadata.h +125 -0
- data/ext/apex_ext/apex_src/src/extensions/relaxed_tables.c +1297 -0
- data/ext/apex_ext/apex_src/src/extensions/relaxed_tables.h +39 -0
- data/ext/apex_ext/apex_src/src/extensions/special_markers.c +194 -0
- data/ext/apex_ext/apex_src/src/extensions/special_markers.h +29 -0
- data/ext/apex_ext/apex_src/src/extensions/sup_sub.c +405 -0
- data/ext/apex_ext/apex_src/src/extensions/sup_sub.h +16 -0
- data/ext/apex_ext/apex_src/src/extensions/syntax_highlight.c +468 -0
- data/ext/apex_ext/apex_src/src/extensions/syntax_highlight.h +44 -0
- data/ext/apex_ext/apex_src/src/extensions/table_html_postprocess.c +2679 -0
- data/ext/apex_ext/apex_src/src/extensions/table_html_postprocess.h +23 -0
- data/ext/apex_ext/apex_src/src/extensions/toc.c +255 -0
- data/ext/apex_ext/apex_src/src/extensions/toc.h +34 -0
- data/ext/apex_ext/apex_src/src/extensions/wiki_links.c +624 -0
- data/ext/apex_ext/apex_src/src/extensions/wiki_links.h +58 -0
- data/ext/apex_ext/apex_src/src/html_renderer.c +2762 -0
- data/ext/apex_ext/apex_src/src/html_renderer.h +126 -0
- data/ext/apex_ext/apex_src/src/parser.c +227 -0
- data/ext/apex_ext/apex_src/src/plugins.c +895 -0
- data/ext/apex_ext/apex_src/src/plugins.h +39 -0
- data/ext/apex_ext/apex_src/src/plugins_env.c +187 -0
- data/ext/apex_ext/apex_src/src/plugins_remote.c +263 -0
- data/ext/apex_ext/apex_src/src/pretty_html.c +358 -0
- data/ext/apex_ext/apex_src/src/renderer.c +241 -0
- data/ext/apex_ext/apex_src/src/utf8.c +56 -0
- data/ext/apex_ext/apex_src/test-linux-build.sh +20 -0
- data/ext/apex_ext/apex_src/test.html +103 -0
- data/ext/apex_ext/apex_src/test_coverage.sh +121 -0
- data/ext/apex_ext/apex_src/test_ial_fenced.md +6 -0
- data/ext/apex_ext/apex_src/test_math_norm.py +79 -0
- data/ext/apex_ext/apex_src/test_pandoc_output.html +48 -0
- data/ext/apex_ext/apex_src/test_spm.sh +107 -0
- data/ext/apex_ext/apex_src/tests/ApexSPMTest/main.swift +50 -0
- data/ext/apex_ext/apex_src/tests/BENCHMARK_RESULTS.md +229 -0
- data/ext/apex_ext/apex_src/tests/CMakeLists.txt +24 -0
- data/ext/apex_ext/apex_src/tests/README.md +146 -0
- data/ext/apex_ext/apex_src/tests/benchmark.sh +113 -0
- data/ext/apex_ext/apex_src/tests/benchmark_comparison.sh +166 -0
- data/ext/apex_ext/apex_src/tests/compare_header_ids.sh +31 -0
- data/ext/apex_ext/apex_src/tests/fixtures/basic/headers.md +25 -0
- data/ext/apex_ext/apex_src/tests/fixtures/basic/list-interruption.md +24 -0
- data/ext/apex_ext/apex_src/tests/fixtures/basic/misc_markup.md +33 -0
- data/ext/apex_ext/apex_src/tests/fixtures/basic/test_basic.md +26 -0
- data/ext/apex_ext/apex_src/tests/fixtures/code/code-blocks.md +260 -0
- data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/SUMMARY.md +6 -0
- data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/chapter1.md +7 -0
- data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/index.txt +9 -0
- data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/intro.md +5 -0
- data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/section1_1.md +5 -0
- data/ext/apex_ext/apex_src/tests/fixtures/comprehensive_test.md +620 -0
- data/ext/apex_ext/apex_src/tests/fixtures/debug_ref_image_ial.md +3 -0
- data/ext/apex_ext/apex_src/tests/fixtures/demos/ial.md +11 -0
- data/ext/apex_ext/apex_src/tests/fixtures/demos/ial_demo.md +177 -0
- data/ext/apex_ext/apex_src/tests/fixtures/extensions/emoji-autocorrect.md +94 -0
- data/ext/apex_ext/apex_src/tests/fixtures/extensions/emoji_test.md +3 -0
- data/ext/apex_ext/apex_src/tests/fixtures/extensions/kbd_test.md +3 -0
- data/ext/apex_ext/apex_src/tests/fixtures/ial/bracketed_spans_test.md +74 -0
- data/ext/apex_ext/apex_src/tests/fixtures/images/image_and_encoding_test.md +27 -0
- data/ext/apex_ext/apex_src/tests/fixtures/images/multimarkdown_image_attributes_test.md +60 -0
- data/ext/apex_ext/apex_src/tests/fixtures/images/pandoc_ial_image_test.md +27 -0
- data/ext/apex_ext/apex_src/tests/fixtures/images/width_height_conversion_test.md +94 -0
- data/ext/apex_ext/apex_src/tests/fixtures/img-in-div.md +16 -0
- data/ext/apex_ext/apex_src/tests/fixtures/includes/code.py +4 -0
- data/ext/apex_ext/apex_src/tests/fixtures/includes/data.csv +5 -0
- data/ext/apex_ext/apex_src/tests/fixtures/includes/data.tsv +5 -0
- data/ext/apex_ext/apex_src/tests/fixtures/includes/image.png +2 -0
- data/ext/apex_ext/apex_src/tests/fixtures/includes/metadata_options.yml +11 -0
- data/ext/apex_ext/apex_src/tests/fixtures/includes/nested.md +8 -0
- data/ext/apex_ext/apex_src/tests/fixtures/includes/raw.html +4 -0
- data/ext/apex_ext/apex_src/tests/fixtures/includes/simple.md +7 -0
- data/ext/apex_ext/apex_src/tests/fixtures/includes/test_image.png +0 -0
- data/ext/apex_ext/apex_src/tests/fixtures/large_doc.md +1094 -0
- data/ext/apex_ext/apex_src/tests/fixtures/metadata_options.yml +11 -0
- data/ext/apex_ext/apex_src/tests/fixtures/output/gfm_header_id_test.md +96 -0
- data/ext/apex_ext/apex_src/tests/fixtures/output/test_citations.md +43 -0
- data/ext/apex_ext/apex_src/tests/fixtures/output/test_def_list_links.md +12 -0
- data/ext/apex_ext/apex_src/tests/fixtures/output/test_index_mmark.md +53 -0
- data/ext/apex_ext/apex_src/tests/fixtures/output/test_index_textindex.md +37 -0
- data/ext/apex_ext/apex_src/tests/fixtures/tables/advanced_tables_test.md +93 -0
- data/ext/apex_ext/apex_src/tests/fixtures/tables/inline_tables_test.md +38 -0
- data/ext/apex_ext/apex_src/tests/fixtures/tables/relaxed-table.md +12 -0
- data/ext/apex_ext/apex_src/tests/fixtures/tables/table_cr_line_endings.md +15 -0
- data/ext/apex_ext/apex_src/tests/fixtures/tables/table_no_trailing_newline.md +15 -0
- data/ext/apex_ext/apex_src/tests/generate_gfm_ids.sh +105 -0
- data/ext/apex_ext/apex_src/tests/generate_ial_demo.sh +143 -0
- data/ext/apex_ext/apex_src/tests/gfm_id_comparison_summary.md +96 -0
- data/ext/apex_ext/apex_src/tests/gh_api_test.md +6 -0
- data/ext/apex_ext/apex_src/tests/ial_demo.html +186 -0
- data/ext/apex_ext/apex_src/tests/include_code.py +19 -0
- data/ext/apex_ext/apex_src/tests/include_snippet.md +15 -0
- data/ext/apex_ext/apex_src/tests/multi_file_cli_test.sh +64 -0
- data/ext/apex_ext/apex_src/tests/sample_data.csv +7 -0
- data/ext/apex_ext/apex_src/tests/table_escaped_ltlt.md +4 -0
- data/ext/apex_ext/apex_src/tests/test_basic.c +74 -0
- data/ext/apex_ext/apex_src/tests/test_extensions.c +2116 -0
- data/ext/apex_ext/apex_src/tests/test_helpers.c +183 -0
- data/ext/apex_ext/apex_src/tests/test_helpers.h +91 -0
- data/ext/apex_ext/apex_src/tests/test_ial.c +282 -0
- data/ext/apex_ext/apex_src/tests/test_links.c +418 -0
- data/ext/apex_ext/apex_src/tests/test_marked_integration.c +265 -0
- data/ext/apex_ext/apex_src/tests/test_metadata.c +908 -0
- data/ext/apex_ext/apex_src/tests/test_output.c +1118 -0
- data/ext/apex_ext/apex_src/tests/test_plugins.c +219 -0
- data/ext/apex_ext/apex_src/tests/test_refs.bib +31 -0
- data/ext/apex_ext/apex_src/tests/test_runner.c +244 -0
- data/ext/apex_ext/apex_src/tests/test_syntax_highlight.c +198 -0
- data/ext/apex_ext/apex_src/tests/test_tables.c +862 -0
- data/ext/apex_ext/apex_src/tests/update_benchmarks.sh +9 -0
- data/ext/apex_ext/apex_src/tests/yaml_test.md +13 -0
- data/ext/apex_ext/apex_src/tests.rb +39 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/CMakeLists.txt +48 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/COPYING +170 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/CheckFileOffsetBits.c +14 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/CheckFileOffsetBits.cmake +43 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/FindAsan.cmake +74 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/Makefile.nmake +38 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/README.md +206 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/CMakeLists.txt +30 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/cplusplus.cpp +15 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/cplusplus.h +16 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/harness.c +111 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/harness.h +35 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/main.c +1169 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/appveyor.yml +21 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-bq-flat.md +16 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-bq-nested.md +13 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-code.md +11 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-fences.md +14 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-heading.md +9 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-hr.md +10 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-html.md +32 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-lheading.md +8 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-list-flat.md +67 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-list-nested.md +36 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-ref-flat.md +15 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-ref-nested.md +17 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-autolink.md +14 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-backticks.md +3 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-em-flat.md +5 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-em-nested.md +5 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-em-worst.md +5 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-entity.md +11 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-escape.md +15 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-html.md +44 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-links-flat.md +23 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-links-nested.md +13 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-newlines.md +24 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/lorem1.md +13 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/rawtabs.md +18 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/statistics.py +595 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/stats.py +19 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/benchmarks.md +33 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/changelog.txt +1245 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/data/CaseFolding.txt +1495 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/CMakeLists.txt +119 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/autolink.c +508 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/autolink.h +8 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/cmark-gfm-core-extensions.h +54 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/core-extensions.c +27 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/ext_scanners.c +879 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/ext_scanners.h +24 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/ext_scanners.re +92 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/strikethrough.c +167 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/strikethrough.h +9 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/table.c +917 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/table.h +12 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/tagfilter.c +60 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/tagfilter.h +8 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/tasklist.c +156 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/tasklist.h +8 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/CMakeLists.txt +22 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/README.md +12 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/fuzz_quadratic.c +91 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/fuzz_quadratic_brackets.c +110 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/fuzzloop.sh +28 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/CMakeLists.txt +10 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/make_man_page.py +133 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/man1/cmark-gfm.1 +78 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/man3/cmark-gfm.3 +1041 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/nmake.bat +1 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/CMakeLists.txt +230 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/arena.c +104 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/blocks.c +1622 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/buffer.c +278 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/buffer.h +116 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/case_fold_switch.inc +4327 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/chunk.h +135 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/cmark-gfm-extension_api.h +737 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/cmark-gfm.h +833 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/cmark-gfm_version.h.in +7 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/cmark.c +55 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/cmark_ctype.c +44 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/cmark_ctype.h +33 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/commonmark.c +514 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/config.h.in +76 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/entities.inc +2138 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/footnotes.c +63 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/footnotes.h +27 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/houdini.h +57 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/houdini_href_e.c +100 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/houdini_html_e.c +66 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/houdini_html_u.c +149 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/html.c +502 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/html.h +27 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/inlines.c +1788 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/inlines.h +29 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/iterator.c +159 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/iterator.h +26 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/latex.c +468 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/libcmark-gfm.pc.in +10 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/linked_list.c +37 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/main.c +328 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/man.c +274 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/map.c +129 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/map.h +44 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/node.c +1045 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/node.h +167 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/parser.h +59 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/plaintext.c +218 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/plugin.c +36 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/plugin.h +34 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/references.c +43 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/references.h +26 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/registry.c +63 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/registry.h +24 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/render.c +213 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/render.h +62 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/scanners.c +14056 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/scanners.h +70 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/scanners.re +365 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/syntax_extension.c +149 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/syntax_extension.h +34 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/utf8.c +317 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/utf8.h +35 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/xml.c +182 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/suppressions +10 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/CMakeLists.txt +114 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/afl_test_cases/test.md +49 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/cmark-fuzz.c +58 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/cmark.py +105 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/entity_tests.py +67 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/extensions-full-info-string.txt +0 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/extensions-table-prefer-style-attributes.txt +38 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/extensions.txt +920 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/fuzzing_dictionary +67 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/normalize.py +194 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/pathological_tests.py +160 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/regression.txt +375 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/roundtrip_tests.py +50 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/run-cmark-fuzz +4 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/smart_punct.txt +177 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/spec.txt +10212 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/spec_tests.py +152 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/toolchain-mingw32.cmake +17 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/Dockerfile +41 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/appveyor-build.bat +13 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/make_entities_inc.py +32 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/mkcasefold.pl +22 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/xml2md.xsl +319 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/xml2md_gfm.xsl +80 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/why-cmark-and-not-x.md +104 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.js +6 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.py +37 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.rb +15 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.rkt +208 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper_ext.py +109 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/CMakeLists.txt +160 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/Changes +372 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/License +20 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/Makefile.am +51 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/ReadMe.md +46 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/announcement.msg +89 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/bootstrap +3 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/cmake/config.h.in +4 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/configure.ac +73 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/doc/doxygen.cfg +222 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/docker/README.mkd +17 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/docker/alpine-3.7 +26 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/docker/fedora-25 +26 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/docker/ubuntu-14.04 +29 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/docker/ubuntu-16.04 +24 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/anchors.yaml +10 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/array.yaml +2 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/global-tag.yaml +14 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/json.yaml +1 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/mapping.yaml +2 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/numbers.yaml +1 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/strings.yaml +7 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/tags.yaml +7 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/yaml-version.yaml +3 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/include/Makefile.am +17 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/include/yaml.h +1999 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/pkg/ReadMe.md +77 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/pkg/docker/Dockerfile +32 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/pkg/docker/output/ReadMe +1 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/pkg/docker/scripts/libyaml-dist.sh +23 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/regression-inputs/clusterfuzz-testcase-minimized-5607885063061504.yml +1 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/src/Makefile.am +4 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/src/api.c +1393 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/src/dumper.c +394 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/src/emitter.c +2358 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/src/loader.c +544 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/src/parser.c +1416 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/src/reader.c +469 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/src/scanner.c +3598 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/src/writer.c +141 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/src/yaml_private.h +684 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/CMakeLists.txt +27 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/Makefile.am +9 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/ReadMe.md +63 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-deconstructor-alt.c +800 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-deconstructor.c +1127 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-reformatter-alt.c +217 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-reformatter.c +202 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-all-tests.sh +29 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-dumper.c +314 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-emitter-test-suite.c +290 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-emitter.c +327 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-loader.c +63 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-parser-test-suite.c +196 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-parser.c +88 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-scanner.c +63 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/test-reader.c +354 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/test-version.c +29 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/yaml-0.1.pc.in +10 -0
- data/ext/apex_ext/apex_src/vendor/libyaml/yamlConfig.cmake.in +16 -0
- data/ext/apex_ext/extconf.rb +103 -0
- data/lib/apex/configurable.rb +46 -0
- data/lib/apex/document.rb +66 -0
- data/lib/apex/version.rb +15 -0
- data/lib/apex.rb +28 -0
- metadata +544 -0
|
@@ -0,0 +1,920 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Extensions test
|
|
3
|
+
author: Yuki Izumi
|
|
4
|
+
version: 0.1
|
|
5
|
+
date: '2016-08-31'
|
|
6
|
+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
|
|
7
|
+
...
|
|
8
|
+
|
|
9
|
+
## Tables
|
|
10
|
+
|
|
11
|
+
Here's a well-formed table, doing everything it should.
|
|
12
|
+
|
|
13
|
+
```````````````````````````````` example
|
|
14
|
+
| abc | def |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| ghi | jkl |
|
|
17
|
+
| mno | pqr |
|
|
18
|
+
.
|
|
19
|
+
<table>
|
|
20
|
+
<thead>
|
|
21
|
+
<tr>
|
|
22
|
+
<th>abc</th>
|
|
23
|
+
<th>def</th>
|
|
24
|
+
</tr>
|
|
25
|
+
</thead>
|
|
26
|
+
<tbody>
|
|
27
|
+
<tr>
|
|
28
|
+
<td>ghi</td>
|
|
29
|
+
<td>jkl</td>
|
|
30
|
+
</tr>
|
|
31
|
+
<tr>
|
|
32
|
+
<td>mno</td>
|
|
33
|
+
<td>pqr</td>
|
|
34
|
+
</tr>
|
|
35
|
+
</tbody>
|
|
36
|
+
</table>
|
|
37
|
+
````````````````````````````````
|
|
38
|
+
|
|
39
|
+
We're going to mix up the table now; we'll demonstrate that inline formatting
|
|
40
|
+
works fine, but block elements don't. You can also have empty cells, and the
|
|
41
|
+
textual alignment of the columns is shown to be irrelevant.
|
|
42
|
+
|
|
43
|
+
```````````````````````````````` example
|
|
44
|
+
Hello!
|
|
45
|
+
|
|
46
|
+
| _abc_ | セン |
|
|
47
|
+
| ----- | ---- |
|
|
48
|
+
| 1. Block elements inside cells don't work. | |
|
|
49
|
+
| But _**inline elements do**_. | x |
|
|
50
|
+
|
|
51
|
+
Hi!
|
|
52
|
+
.
|
|
53
|
+
<p>Hello!</p>
|
|
54
|
+
<table>
|
|
55
|
+
<thead>
|
|
56
|
+
<tr>
|
|
57
|
+
<th><em>abc</em></th>
|
|
58
|
+
<th>セン</th>
|
|
59
|
+
</tr>
|
|
60
|
+
</thead>
|
|
61
|
+
<tbody>
|
|
62
|
+
<tr>
|
|
63
|
+
<td>1. Block elements inside cells don't work.</td>
|
|
64
|
+
<td></td>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr>
|
|
67
|
+
<td>But <em><strong>inline elements do</strong></em>.</td>
|
|
68
|
+
<td>x</td>
|
|
69
|
+
</tr>
|
|
70
|
+
</tbody>
|
|
71
|
+
</table>
|
|
72
|
+
<p>Hi!</p>
|
|
73
|
+
````````````````````````````````
|
|
74
|
+
|
|
75
|
+
Here we demonstrate some edge cases about what is and isn't a table.
|
|
76
|
+
|
|
77
|
+
```````````````````````````````` example
|
|
78
|
+
| Not enough table | to be considered table |
|
|
79
|
+
|
|
80
|
+
| Not enough table | to be considered table |
|
|
81
|
+
| Not enough table | to be considered table |
|
|
82
|
+
|
|
83
|
+
| Just enough table | to be considered table |
|
|
84
|
+
| ----------------- | ---------------------- |
|
|
85
|
+
|
|
86
|
+
| ---- | --- |
|
|
87
|
+
|
|
88
|
+
|x|
|
|
89
|
+
|-|
|
|
90
|
+
|
|
91
|
+
| xyz |
|
|
92
|
+
| --- |
|
|
93
|
+
.
|
|
94
|
+
<p>| Not enough table | to be considered table |</p>
|
|
95
|
+
<p>| Not enough table | to be considered table |
|
|
96
|
+
| Not enough table | to be considered table |</p>
|
|
97
|
+
<table>
|
|
98
|
+
<thead>
|
|
99
|
+
<tr>
|
|
100
|
+
<th>Just enough table</th>
|
|
101
|
+
<th>to be considered table</th>
|
|
102
|
+
</tr>
|
|
103
|
+
</thead>
|
|
104
|
+
</table>
|
|
105
|
+
<p>| ---- | --- |</p>
|
|
106
|
+
<table>
|
|
107
|
+
<thead>
|
|
108
|
+
<tr>
|
|
109
|
+
<th>x</th>
|
|
110
|
+
</tr>
|
|
111
|
+
</thead>
|
|
112
|
+
</table>
|
|
113
|
+
<table>
|
|
114
|
+
<thead>
|
|
115
|
+
<tr>
|
|
116
|
+
<th>xyz</th>
|
|
117
|
+
</tr>
|
|
118
|
+
</thead>
|
|
119
|
+
</table>
|
|
120
|
+
````````````````````````````````
|
|
121
|
+
|
|
122
|
+
A "simpler" table, GFM style:
|
|
123
|
+
|
|
124
|
+
```````````````````````````````` example
|
|
125
|
+
abc | def
|
|
126
|
+
--- | ---
|
|
127
|
+
xyz | ghi
|
|
128
|
+
.
|
|
129
|
+
<table>
|
|
130
|
+
<thead>
|
|
131
|
+
<tr>
|
|
132
|
+
<th>abc</th>
|
|
133
|
+
<th>def</th>
|
|
134
|
+
</tr>
|
|
135
|
+
</thead>
|
|
136
|
+
<tbody>
|
|
137
|
+
<tr>
|
|
138
|
+
<td>xyz</td>
|
|
139
|
+
<td>ghi</td>
|
|
140
|
+
</tr>
|
|
141
|
+
</tbody>
|
|
142
|
+
</table>
|
|
143
|
+
````````````````````````````````
|
|
144
|
+
|
|
145
|
+
We are making the parser slighly more lax here. Here is a table with spaces at
|
|
146
|
+
the end:
|
|
147
|
+
|
|
148
|
+
```````````````````````````````` example
|
|
149
|
+
Hello!
|
|
150
|
+
|
|
151
|
+
| _abc_ | セン |
|
|
152
|
+
| ----- | ---- |
|
|
153
|
+
| this row has a space at the end | |
|
|
154
|
+
| But _**inline elements do**_. | x |
|
|
155
|
+
|
|
156
|
+
Hi!
|
|
157
|
+
.
|
|
158
|
+
<p>Hello!</p>
|
|
159
|
+
<table>
|
|
160
|
+
<thead>
|
|
161
|
+
<tr>
|
|
162
|
+
<th><em>abc</em></th>
|
|
163
|
+
<th>セン</th>
|
|
164
|
+
</tr>
|
|
165
|
+
</thead>
|
|
166
|
+
<tbody>
|
|
167
|
+
<tr>
|
|
168
|
+
<td>this row has a space at the end</td>
|
|
169
|
+
<td></td>
|
|
170
|
+
</tr>
|
|
171
|
+
<tr>
|
|
172
|
+
<td>But <em><strong>inline elements do</strong></em>.</td>
|
|
173
|
+
<td>x</td>
|
|
174
|
+
</tr>
|
|
175
|
+
</tbody>
|
|
176
|
+
</table>
|
|
177
|
+
<p>Hi!</p>
|
|
178
|
+
````````````````````````````````
|
|
179
|
+
|
|
180
|
+
Table alignment:
|
|
181
|
+
|
|
182
|
+
```````````````````````````````` example
|
|
183
|
+
aaa | bbb | ccc | ddd | eee
|
|
184
|
+
:-- | --- | :-: | --- | --:
|
|
185
|
+
fff | ggg | hhh | iii | jjj
|
|
186
|
+
.
|
|
187
|
+
<table>
|
|
188
|
+
<thead>
|
|
189
|
+
<tr>
|
|
190
|
+
<th align="left">aaa</th>
|
|
191
|
+
<th>bbb</th>
|
|
192
|
+
<th align="center">ccc</th>
|
|
193
|
+
<th>ddd</th>
|
|
194
|
+
<th align="right">eee</th>
|
|
195
|
+
</tr>
|
|
196
|
+
</thead>
|
|
197
|
+
<tbody>
|
|
198
|
+
<tr>
|
|
199
|
+
<td align="left">fff</td>
|
|
200
|
+
<td>ggg</td>
|
|
201
|
+
<td align="center">hhh</td>
|
|
202
|
+
<td>iii</td>
|
|
203
|
+
<td align="right">jjj</td>
|
|
204
|
+
</tr>
|
|
205
|
+
</tbody>
|
|
206
|
+
</table>
|
|
207
|
+
````````````````````````````````
|
|
208
|
+
|
|
209
|
+
### Table cell count mismatches
|
|
210
|
+
|
|
211
|
+
The header and delimiter row must match.
|
|
212
|
+
|
|
213
|
+
```````````````````````````````` example
|
|
214
|
+
| a | b | c |
|
|
215
|
+
| --- | --- |
|
|
216
|
+
| this | isn't | okay |
|
|
217
|
+
.
|
|
218
|
+
<p>| a | b | c |
|
|
219
|
+
| --- | --- |
|
|
220
|
+
| this | isn't | okay |</p>
|
|
221
|
+
````````````````````````````````
|
|
222
|
+
|
|
223
|
+
But any of the body rows can be shorter. Rows longer
|
|
224
|
+
than the header are truncated.
|
|
225
|
+
|
|
226
|
+
```````````````````````````````` example
|
|
227
|
+
| a | b | c |
|
|
228
|
+
| --- | --- | ---
|
|
229
|
+
| x
|
|
230
|
+
| a | b
|
|
231
|
+
| 1 | 2 | 3 | 4 | 5 |
|
|
232
|
+
.
|
|
233
|
+
<table>
|
|
234
|
+
<thead>
|
|
235
|
+
<tr>
|
|
236
|
+
<th>a</th>
|
|
237
|
+
<th>b</th>
|
|
238
|
+
<th>c</th>
|
|
239
|
+
</tr>
|
|
240
|
+
</thead>
|
|
241
|
+
<tbody>
|
|
242
|
+
<tr>
|
|
243
|
+
<td>x</td>
|
|
244
|
+
<td></td>
|
|
245
|
+
<td></td>
|
|
246
|
+
</tr>
|
|
247
|
+
<tr>
|
|
248
|
+
<td>a</td>
|
|
249
|
+
<td>b</td>
|
|
250
|
+
<td></td>
|
|
251
|
+
</tr>
|
|
252
|
+
<tr>
|
|
253
|
+
<td>1</td>
|
|
254
|
+
<td>2</td>
|
|
255
|
+
<td>3</td>
|
|
256
|
+
</tr>
|
|
257
|
+
</tbody>
|
|
258
|
+
</table>
|
|
259
|
+
````````````````````````````````
|
|
260
|
+
|
|
261
|
+
### Embedded pipes
|
|
262
|
+
|
|
263
|
+
Tables with embedded pipes could be tricky.
|
|
264
|
+
|
|
265
|
+
```````````````````````````````` example
|
|
266
|
+
| a | b |
|
|
267
|
+
| --- | --- |
|
|
268
|
+
| Escaped pipes are \|okay\|. | Like \| this. |
|
|
269
|
+
| Within `\|code\| is okay` too. |
|
|
270
|
+
| _**`c\|`**_ \| complex
|
|
271
|
+
| don't **\_reparse\_**
|
|
272
|
+
.
|
|
273
|
+
<table>
|
|
274
|
+
<thead>
|
|
275
|
+
<tr>
|
|
276
|
+
<th>a</th>
|
|
277
|
+
<th>b</th>
|
|
278
|
+
</tr>
|
|
279
|
+
</thead>
|
|
280
|
+
<tbody>
|
|
281
|
+
<tr>
|
|
282
|
+
<td>Escaped pipes are |okay|.</td>
|
|
283
|
+
<td>Like | this.</td>
|
|
284
|
+
</tr>
|
|
285
|
+
<tr>
|
|
286
|
+
<td>Within <code>|code| is okay</code> too.</td>
|
|
287
|
+
<td></td>
|
|
288
|
+
</tr>
|
|
289
|
+
<tr>
|
|
290
|
+
<td><em><strong><code>c|</code></strong></em> | complex</td>
|
|
291
|
+
<td></td>
|
|
292
|
+
</tr>
|
|
293
|
+
<tr>
|
|
294
|
+
<td>don't <strong>_reparse_</strong></td>
|
|
295
|
+
<td></td>
|
|
296
|
+
</tr>
|
|
297
|
+
</tbody>
|
|
298
|
+
</table>
|
|
299
|
+
````````````````````````````````
|
|
300
|
+
|
|
301
|
+
### Oddly-formatted markers
|
|
302
|
+
|
|
303
|
+
This shouldn't assert.
|
|
304
|
+
|
|
305
|
+
```````````````````````````````` example
|
|
306
|
+
| a |
|
|
307
|
+
--- |
|
|
308
|
+
.
|
|
309
|
+
<table>
|
|
310
|
+
<thead>
|
|
311
|
+
<tr>
|
|
312
|
+
<th>a</th>
|
|
313
|
+
</tr>
|
|
314
|
+
</thead>
|
|
315
|
+
</table>
|
|
316
|
+
````````````````````````````````
|
|
317
|
+
|
|
318
|
+
### Escaping
|
|
319
|
+
|
|
320
|
+
```````````````````````````````` example
|
|
321
|
+
| a | b |
|
|
322
|
+
| --- | --- |
|
|
323
|
+
| \\ | `\\` |
|
|
324
|
+
| \\\\ | `\\\\` |
|
|
325
|
+
| \_ | `\_` |
|
|
326
|
+
| \| | `\|` |
|
|
327
|
+
| \a | `\a` |
|
|
328
|
+
|
|
329
|
+
\\ `\\`
|
|
330
|
+
|
|
331
|
+
\\\\ `\\\\`
|
|
332
|
+
|
|
333
|
+
\_ `\_`
|
|
334
|
+
|
|
335
|
+
\| `\|`
|
|
336
|
+
|
|
337
|
+
\a `\a`
|
|
338
|
+
.
|
|
339
|
+
<table>
|
|
340
|
+
<thead>
|
|
341
|
+
<tr>
|
|
342
|
+
<th>a</th>
|
|
343
|
+
<th>b</th>
|
|
344
|
+
</tr>
|
|
345
|
+
</thead>
|
|
346
|
+
<tbody>
|
|
347
|
+
<tr>
|
|
348
|
+
<td>\</td>
|
|
349
|
+
<td><code>\\</code></td>
|
|
350
|
+
</tr>
|
|
351
|
+
<tr>
|
|
352
|
+
<td>\\</td>
|
|
353
|
+
<td><code>\\\\</code></td>
|
|
354
|
+
</tr>
|
|
355
|
+
<tr>
|
|
356
|
+
<td>_</td>
|
|
357
|
+
<td><code>\_</code></td>
|
|
358
|
+
</tr>
|
|
359
|
+
<tr>
|
|
360
|
+
<td>|</td>
|
|
361
|
+
<td><code>|</code></td>
|
|
362
|
+
</tr>
|
|
363
|
+
<tr>
|
|
364
|
+
<td>\a</td>
|
|
365
|
+
<td><code>\a</code></td>
|
|
366
|
+
</tr>
|
|
367
|
+
</tbody>
|
|
368
|
+
</table>
|
|
369
|
+
<p>\ <code>\\</code></p>
|
|
370
|
+
<p>\\ <code>\\\\</code></p>
|
|
371
|
+
<p>_ <code>\_</code></p>
|
|
372
|
+
<p>| <code>\|</code></p>
|
|
373
|
+
<p>\a <code>\a</code></p>
|
|
374
|
+
````````````````````````````````
|
|
375
|
+
|
|
376
|
+
### Embedded HTML
|
|
377
|
+
|
|
378
|
+
```````````````````````````````` example
|
|
379
|
+
| a |
|
|
380
|
+
| --- |
|
|
381
|
+
| <strong>hello</strong> |
|
|
382
|
+
| ok <br> sure |
|
|
383
|
+
.
|
|
384
|
+
<table>
|
|
385
|
+
<thead>
|
|
386
|
+
<tr>
|
|
387
|
+
<th>a</th>
|
|
388
|
+
</tr>
|
|
389
|
+
</thead>
|
|
390
|
+
<tbody>
|
|
391
|
+
<tr>
|
|
392
|
+
<td><strong>hello</strong></td>
|
|
393
|
+
</tr>
|
|
394
|
+
<tr>
|
|
395
|
+
<td>ok <br> sure</td>
|
|
396
|
+
</tr>
|
|
397
|
+
</tbody>
|
|
398
|
+
</table>
|
|
399
|
+
````````````````````````````````
|
|
400
|
+
|
|
401
|
+
### Reference-style links
|
|
402
|
+
|
|
403
|
+
```````````````````````````````` example
|
|
404
|
+
Here's a link to [Freedom Planet 2][].
|
|
405
|
+
|
|
406
|
+
| Here's a link to [Freedom Planet 2][] in a table header. |
|
|
407
|
+
| --- |
|
|
408
|
+
| Here's a link to [Freedom Planet 2][] in a table row. |
|
|
409
|
+
|
|
410
|
+
[Freedom Planet 2]: http://www.freedomplanet2.com/
|
|
411
|
+
.
|
|
412
|
+
<p>Here's a link to <a href="http://www.freedomplanet2.com/">Freedom Planet 2</a>.</p>
|
|
413
|
+
<table>
|
|
414
|
+
<thead>
|
|
415
|
+
<tr>
|
|
416
|
+
<th>Here's a link to <a href="http://www.freedomplanet2.com/">Freedom Planet 2</a> in a table header.</th>
|
|
417
|
+
</tr>
|
|
418
|
+
</thead>
|
|
419
|
+
<tbody>
|
|
420
|
+
<tr>
|
|
421
|
+
<td>Here's a link to <a href="http://www.freedomplanet2.com/">Freedom Planet 2</a> in a table row.</td>
|
|
422
|
+
</tr>
|
|
423
|
+
</tbody>
|
|
424
|
+
</table>
|
|
425
|
+
````````````````````````````````
|
|
426
|
+
|
|
427
|
+
### Sequential cells
|
|
428
|
+
|
|
429
|
+
```````````````````````````````` example
|
|
430
|
+
| a | b | c |
|
|
431
|
+
| --- | --- | --- |
|
|
432
|
+
| d || e |
|
|
433
|
+
.
|
|
434
|
+
<table>
|
|
435
|
+
<thead>
|
|
436
|
+
<tr>
|
|
437
|
+
<th>a</th>
|
|
438
|
+
<th>b</th>
|
|
439
|
+
<th>c</th>
|
|
440
|
+
</tr>
|
|
441
|
+
</thead>
|
|
442
|
+
<tbody>
|
|
443
|
+
<tr>
|
|
444
|
+
<td>d</td>
|
|
445
|
+
<td></td>
|
|
446
|
+
<td>e</td>
|
|
447
|
+
</tr>
|
|
448
|
+
</tbody>
|
|
449
|
+
</table>
|
|
450
|
+
````````````````````````````````
|
|
451
|
+
|
|
452
|
+
### Interaction with emphasis
|
|
453
|
+
|
|
454
|
+
```````````````````````````````` example
|
|
455
|
+
| a | b |
|
|
456
|
+
| --- | --- |
|
|
457
|
+
|***(a)***|
|
|
458
|
+
.
|
|
459
|
+
<table>
|
|
460
|
+
<thead>
|
|
461
|
+
<tr>
|
|
462
|
+
<th>a</th>
|
|
463
|
+
<th>b</th>
|
|
464
|
+
</tr>
|
|
465
|
+
</thead>
|
|
466
|
+
<tbody>
|
|
467
|
+
<tr>
|
|
468
|
+
<td><em><strong>(a)</strong></em></td>
|
|
469
|
+
<td></td>
|
|
470
|
+
</tr>
|
|
471
|
+
</tbody>
|
|
472
|
+
</table>
|
|
473
|
+
````````````````````````````````
|
|
474
|
+
|
|
475
|
+
### a table can be recognised when separated from a paragraph of text without an empty line
|
|
476
|
+
|
|
477
|
+
```````````````````````````````` example
|
|
478
|
+
123
|
|
479
|
+
456
|
|
480
|
+
| a | b |
|
|
481
|
+
| ---| --- |
|
|
482
|
+
d | e
|
|
483
|
+
.
|
|
484
|
+
<p>123
|
|
485
|
+
456</p>
|
|
486
|
+
<table>
|
|
487
|
+
<thead>
|
|
488
|
+
<tr>
|
|
489
|
+
<th>a</th>
|
|
490
|
+
<th>b</th>
|
|
491
|
+
</tr>
|
|
492
|
+
</thead>
|
|
493
|
+
<tbody>
|
|
494
|
+
<tr>
|
|
495
|
+
<td>d</td>
|
|
496
|
+
<td>e</td>
|
|
497
|
+
</tr>
|
|
498
|
+
</tbody>
|
|
499
|
+
</table>
|
|
500
|
+
````````````````````````````````
|
|
501
|
+
|
|
502
|
+
## Strikethroughs
|
|
503
|
+
|
|
504
|
+
A well-formed strikethrough.
|
|
505
|
+
|
|
506
|
+
```````````````````````````````` example
|
|
507
|
+
A proper ~strikethrough~.
|
|
508
|
+
.
|
|
509
|
+
<p>A proper <del>strikethrough</del>.</p>
|
|
510
|
+
````````````````````````````````
|
|
511
|
+
|
|
512
|
+
Some strikethrough edge cases.
|
|
513
|
+
|
|
514
|
+
```````````````````````````````` example
|
|
515
|
+
These are ~not strikethroughs.
|
|
516
|
+
|
|
517
|
+
No, they are not~
|
|
518
|
+
|
|
519
|
+
This ~is ~ legit~ isn't ~ legit.
|
|
520
|
+
|
|
521
|
+
This is not ~~~~~one~~~~~ huge strikethrough.
|
|
522
|
+
|
|
523
|
+
~one~ ~~two~~ ~~~three~~~
|
|
524
|
+
|
|
525
|
+
No ~mismatch~~
|
|
526
|
+
.
|
|
527
|
+
<p>These are ~not strikethroughs.</p>
|
|
528
|
+
<p>No, they are not~</p>
|
|
529
|
+
<p>This <del>is ~ legit</del> isn't ~ legit.</p>
|
|
530
|
+
<p>This is not ~~~~~one~~~~~ huge strikethrough.</p>
|
|
531
|
+
<p><del>one</del> <del>two</del> ~~~three~~~</p>
|
|
532
|
+
<p>No ~mismatch~~</p>
|
|
533
|
+
````````````````````````````````
|
|
534
|
+
|
|
535
|
+
Using 200 tilde since it overflows the internal buffer
|
|
536
|
+
size (100) for parsing delimiters in inlines.c
|
|
537
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~striked~
|
|
538
|
+
|
|
539
|
+
## Autolinks
|
|
540
|
+
|
|
541
|
+
```````````````````````````````` example
|
|
542
|
+
: http://google.com https://google.com
|
|
543
|
+
|
|
544
|
+
<http://google.com/å> http://google.com/å
|
|
545
|
+
|
|
546
|
+
scyther@pokemon.com
|
|
547
|
+
|
|
548
|
+
scy.the_rbe-edr+ill@pokemon.com
|
|
549
|
+
|
|
550
|
+
scyther@pokemon.com.
|
|
551
|
+
|
|
552
|
+
scyther@pokemon.com/
|
|
553
|
+
|
|
554
|
+
scyther@pokemon.com/beedrill@pokemon.com
|
|
555
|
+
|
|
556
|
+
mailto:scyther@pokemon.com
|
|
557
|
+
|
|
558
|
+
This is a mailto:scyther@pokemon.com
|
|
559
|
+
|
|
560
|
+
mailto:scyther@pokemon.com.
|
|
561
|
+
|
|
562
|
+
mmmmailto:scyther@pokemon.com
|
|
563
|
+
|
|
564
|
+
mailto:scyther@pokemon.com/
|
|
565
|
+
|
|
566
|
+
mailto:scyther@pokemon.com/message
|
|
567
|
+
|
|
568
|
+
mailto:scyther@pokemon.com/mailto:beedrill@pokemon.com
|
|
569
|
+
|
|
570
|
+
xmpp:scyther@pokemon.com
|
|
571
|
+
|
|
572
|
+
xmpp:scyther@pokemon.com.
|
|
573
|
+
|
|
574
|
+
xmpp:scyther@pokemon.com/message
|
|
575
|
+
|
|
576
|
+
xmpp:scyther@pokemon.com/message.
|
|
577
|
+
|
|
578
|
+
Email me at:scyther@pokemon.com
|
|
579
|
+
|
|
580
|
+
www.github.com www.github.com/á
|
|
581
|
+
|
|
582
|
+
www.google.com/a_b
|
|
583
|
+
|
|
584
|
+
Underscores not allowed in host name www.xxx.yyy._zzz
|
|
585
|
+
|
|
586
|
+
Underscores not allowed in host name www.xxx._yyy.zzz
|
|
587
|
+
|
|
588
|
+
Underscores allowed in domain name www._xxx.yyy.zzz
|
|
589
|
+
|
|
590
|
+
**Autolink and http://inlines**
|
|
591
|
+
|
|
592
|
+

|
|
593
|
+
|
|
594
|
+
a.w@b.c
|
|
595
|
+
|
|
596
|
+
Full stop outside parens shouldn't be included http://google.com/ok.
|
|
597
|
+
|
|
598
|
+
(Full stop inside parens shouldn't be included http://google.com/ok.)
|
|
599
|
+
|
|
600
|
+
"http://google.com"
|
|
601
|
+
|
|
602
|
+
'http://google.com'
|
|
603
|
+
|
|
604
|
+
http://🍄.ga/ http://x🍄.ga/
|
|
605
|
+
.
|
|
606
|
+
<p>: <a href="http://google.com">http://google.com</a> <a href="https://google.com">https://google.com</a></p>
|
|
607
|
+
<p><a href="http://google.com/%C3%A5">http://google.com/å</a> <a href="http://google.com/%C3%A5">http://google.com/å</a></p>
|
|
608
|
+
<p><a href="mailto:scyther@pokemon.com">scyther@pokemon.com</a></p>
|
|
609
|
+
<p><a href="mailto:scy.the_rbe-edr+ill@pokemon.com">scy.the_rbe-edr+ill@pokemon.com</a></p>
|
|
610
|
+
<p><a href="mailto:scyther@pokemon.com">scyther@pokemon.com</a>.</p>
|
|
611
|
+
<p><a href="mailto:scyther@pokemon.com">scyther@pokemon.com</a>/</p>
|
|
612
|
+
<p><a href="mailto:scyther@pokemon.com">scyther@pokemon.com</a>/<a href="mailto:beedrill@pokemon.com">beedrill@pokemon.com</a></p>
|
|
613
|
+
<p><a href="mailto:scyther@pokemon.com">mailto:scyther@pokemon.com</a></p>
|
|
614
|
+
<p>This is a <a href="mailto:scyther@pokemon.com">mailto:scyther@pokemon.com</a></p>
|
|
615
|
+
<p><a href="mailto:scyther@pokemon.com">mailto:scyther@pokemon.com</a>.</p>
|
|
616
|
+
<p>mmmmailto:<a href="mailto:scyther@pokemon.com">scyther@pokemon.com</a></p>
|
|
617
|
+
<p><a href="mailto:scyther@pokemon.com">mailto:scyther@pokemon.com</a>/</p>
|
|
618
|
+
<p><a href="mailto:scyther@pokemon.com">mailto:scyther@pokemon.com</a>/message</p>
|
|
619
|
+
<p><a href="mailto:scyther@pokemon.com">mailto:scyther@pokemon.com</a>/<a href="mailto:beedrill@pokemon.com">mailto:beedrill@pokemon.com</a></p>
|
|
620
|
+
<p><a href="xmpp:scyther@pokemon.com">xmpp:scyther@pokemon.com</a></p>
|
|
621
|
+
<p><a href="xmpp:scyther@pokemon.com">xmpp:scyther@pokemon.com</a>.</p>
|
|
622
|
+
<p><a href="xmpp:scyther@pokemon.com/message">xmpp:scyther@pokemon.com/message</a></p>
|
|
623
|
+
<p><a href="xmpp:scyther@pokemon.com/message">xmpp:scyther@pokemon.com/message</a>.</p>
|
|
624
|
+
<p>Email me at:<a href="mailto:scyther@pokemon.com">scyther@pokemon.com</a></p>
|
|
625
|
+
<p><a href="http://www.github.com">www.github.com</a> <a href="http://www.github.com/%C3%A1">www.github.com/á</a></p>
|
|
626
|
+
<p><a href="http://www.google.com/a_b">www.google.com/a_b</a></p>
|
|
627
|
+
<p>Underscores not allowed in host name www.xxx.yyy._zzz</p>
|
|
628
|
+
<p>Underscores not allowed in host name www.xxx._yyy.zzz</p>
|
|
629
|
+
<p>Underscores allowed in domain name <a href="http://www._xxx.yyy.zzz">www._xxx.yyy.zzz</a></p>
|
|
630
|
+
<p><strong>Autolink and <a href="http://inlines">http://inlines</a></strong></p>
|
|
631
|
+
<p><img src="http://inline.com/image" alt="http://inline.com/image" /></p>
|
|
632
|
+
<p><a href="mailto:a.w@b.c">a.w@b.c</a></p>
|
|
633
|
+
<p>Full stop outside parens shouldn't be included <a href="http://google.com/ok">http://google.com/ok</a>.</p>
|
|
634
|
+
<p>(Full stop inside parens shouldn't be included <a href="http://google.com/ok">http://google.com/ok</a>.)</p>
|
|
635
|
+
<p>"<a href="http://google.com">http://google.com</a>"</p>
|
|
636
|
+
<p>'<a href="http://google.com">http://google.com</a>'</p>
|
|
637
|
+
<p><a href="http://%F0%9F%8D%84.ga/">http://🍄.ga/</a> <a href="http://x%F0%9F%8D%84.ga/">http://x🍄.ga/</a></p>
|
|
638
|
+
````````````````````````````````
|
|
639
|
+
|
|
640
|
+
```````````````````````````````` example
|
|
641
|
+
This shouldn't crash everything: (_A_@_.A
|
|
642
|
+
.
|
|
643
|
+
<IGNORE>
|
|
644
|
+
````````````````````````````````
|
|
645
|
+
|
|
646
|
+
```````````````````````````````` example
|
|
647
|
+
These should not link:
|
|
648
|
+
|
|
649
|
+
* @a.b.c@. x
|
|
650
|
+
* n@. b
|
|
651
|
+
.
|
|
652
|
+
<p>These should not link:</p>
|
|
653
|
+
<ul>
|
|
654
|
+
<li>@a.b.c@. x</li>
|
|
655
|
+
<li>n@. b</li>
|
|
656
|
+
</ul>
|
|
657
|
+
````````````````````````````````
|
|
658
|
+
|
|
659
|
+
## HTML tag filter
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
```````````````````````````````` example
|
|
663
|
+
This is <xmp> not okay, but **this** <strong>is</strong>.
|
|
664
|
+
|
|
665
|
+
<p>This is <xmp> not okay, but **this** <strong>is</strong>.</p>
|
|
666
|
+
|
|
667
|
+
Nope, I won't have <textarea>.
|
|
668
|
+
|
|
669
|
+
<p>No <textarea> here either.</p>
|
|
670
|
+
|
|
671
|
+
<p>This <random /> <thing> is okay</thing> though.</p>
|
|
672
|
+
|
|
673
|
+
Yep, <totally>okay</totally>.
|
|
674
|
+
|
|
675
|
+
<!-- HTML comments are okay, though. -->
|
|
676
|
+
<!- But we're strict. ->
|
|
677
|
+
<! No nonsense. >
|
|
678
|
+
<!-- Leave multiline comments the heck alone, though, okay?
|
|
679
|
+
Even with {"x":"y"} or 1 > 2 or whatever. Even **markdown**.
|
|
680
|
+
-->
|
|
681
|
+
<!--- Support everything CommonMark's parser does. -->
|
|
682
|
+
<!---->
|
|
683
|
+
<!--thistoo-->
|
|
684
|
+
.
|
|
685
|
+
<p>This is <xmp> not okay, but <strong>this</strong> <strong>is</strong>.</p>
|
|
686
|
+
<p>This is <xmp> not okay, but **this** <strong>is</strong>.</p>
|
|
687
|
+
<p>Nope, I won't have <textarea>.</p>
|
|
688
|
+
<p>No <textarea> here either.</p>
|
|
689
|
+
<p>This <random /> <thing> is okay</thing> though.</p>
|
|
690
|
+
<p>Yep, <totally>okay</totally>.</p>
|
|
691
|
+
<!-- HTML comments are okay, though. -->
|
|
692
|
+
<p><!- But we're strict. ->
|
|
693
|
+
<! No nonsense. ></p>
|
|
694
|
+
<!-- Leave multiline comments the heck alone, though, okay?
|
|
695
|
+
Even with {"x":"y"} or 1 > 2 or whatever. Even **markdown**.
|
|
696
|
+
-->
|
|
697
|
+
<!--- Support everything CommonMark's parser does. -->
|
|
698
|
+
<!---->
|
|
699
|
+
<!--thistoo-->
|
|
700
|
+
````````````````````````````````
|
|
701
|
+
|
|
702
|
+
## Footnotes
|
|
703
|
+
|
|
704
|
+
```````````````````````````````` example
|
|
705
|
+
This is some text![^1]. Other text.[^footnote].
|
|
706
|
+
|
|
707
|
+
Here's a thing[^other-note].
|
|
708
|
+
|
|
709
|
+
And another thing[^codeblock-note].
|
|
710
|
+
|
|
711
|
+
This doesn't have a referent[^nope].
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
[^other-note]: no code block here (spaces are stripped away)
|
|
715
|
+
|
|
716
|
+
[^codeblock-note]:
|
|
717
|
+
this is now a code block (8 spaces indentation)
|
|
718
|
+
|
|
719
|
+
[^1]: Some *bolded* footnote definition.
|
|
720
|
+
|
|
721
|
+
Hi!
|
|
722
|
+
|
|
723
|
+
[^footnote]:
|
|
724
|
+
> Blockquotes can be in a footnote.
|
|
725
|
+
|
|
726
|
+
as well as code blocks
|
|
727
|
+
|
|
728
|
+
or, naturally, simple paragraphs.
|
|
729
|
+
|
|
730
|
+
[^unused]: This is unused.
|
|
731
|
+
.
|
|
732
|
+
<p>This is some text!<sup class="footnote-ref"><a href="#fn-1" id="fnref-1" data-footnote-ref>1</a></sup>. Other text.<sup class="footnote-ref"><a href="#fn-footnote" id="fnref-footnote" data-footnote-ref>2</a></sup>.</p>
|
|
733
|
+
<p>Here's a thing<sup class="footnote-ref"><a href="#fn-other-note" id="fnref-other-note" data-footnote-ref>3</a></sup>.</p>
|
|
734
|
+
<p>And another thing<sup class="footnote-ref"><a href="#fn-codeblock-note" id="fnref-codeblock-note" data-footnote-ref>4</a></sup>.</p>
|
|
735
|
+
<p>This doesn't have a referent[^nope].</p>
|
|
736
|
+
<p>Hi!</p>
|
|
737
|
+
<section class="footnotes" data-footnotes>
|
|
738
|
+
<ol>
|
|
739
|
+
<li id="fn-1">
|
|
740
|
+
<p>Some <em>bolded</em> footnote definition. <a href="#fnref-1" class="footnote-backref" data-footnote-backref data-footnote-backref-idx="1" aria-label="Back to reference 1">↩</a></p>
|
|
741
|
+
</li>
|
|
742
|
+
<li id="fn-footnote">
|
|
743
|
+
<blockquote>
|
|
744
|
+
<p>Blockquotes can be in a footnote.</p>
|
|
745
|
+
</blockquote>
|
|
746
|
+
<pre><code>as well as code blocks
|
|
747
|
+
</code></pre>
|
|
748
|
+
<p>or, naturally, simple paragraphs. <a href="#fnref-footnote" class="footnote-backref" data-footnote-backref data-footnote-backref-idx="2" aria-label="Back to reference 2">↩</a></p>
|
|
749
|
+
</li>
|
|
750
|
+
<li id="fn-other-note">
|
|
751
|
+
<p>no code block here (spaces are stripped away) <a href="#fnref-other-note" class="footnote-backref" data-footnote-backref data-footnote-backref-idx="3" aria-label="Back to reference 3">↩</a></p>
|
|
752
|
+
</li>
|
|
753
|
+
<li id="fn-codeblock-note">
|
|
754
|
+
<pre><code>this is now a code block (8 spaces indentation)
|
|
755
|
+
</code></pre>
|
|
756
|
+
<a href="#fnref-codeblock-note" class="footnote-backref" data-footnote-backref data-footnote-backref-idx="4" aria-label="Back to reference 4">↩</a>
|
|
757
|
+
</li>
|
|
758
|
+
</ol>
|
|
759
|
+
</section>
|
|
760
|
+
````````````````````````````````
|
|
761
|
+
|
|
762
|
+
## When a footnote is used multiple times, we insert multiple backrefs.
|
|
763
|
+
|
|
764
|
+
```````````````````````````````` example
|
|
765
|
+
This is some text. It has a footnote[^a-footnote].
|
|
766
|
+
|
|
767
|
+
This footnote is referenced[^a-footnote] multiple times, in lots of different places.[^a-footnote]
|
|
768
|
+
|
|
769
|
+
[^a-footnote]: This footnote definition should have three backrefs.
|
|
770
|
+
.
|
|
771
|
+
<p>This is some text. It has a footnote<sup class="footnote-ref"><a href="#fn-a-footnote" id="fnref-a-footnote" data-footnote-ref>1</a></sup>.</p>
|
|
772
|
+
<p>This footnote is referenced<sup class="footnote-ref"><a href="#fn-a-footnote" id="fnref-a-footnote-2" data-footnote-ref>1</a></sup> multiple times, in lots of different places.<sup class="footnote-ref"><a href="#fn-a-footnote" id="fnref-a-footnote-3" data-footnote-ref>1</a></sup></p>
|
|
773
|
+
<section class="footnotes" data-footnotes>
|
|
774
|
+
<ol>
|
|
775
|
+
<li id="fn-a-footnote">
|
|
776
|
+
<p>This footnote definition should have three backrefs. <a href="#fnref-a-footnote" class="footnote-backref" data-footnote-backref data-footnote-backref-idx="1" aria-label="Back to reference 1">↩</a> <a href="#fnref-a-footnote-2" class="footnote-backref" data-footnote-backref data-footnote-backref-idx="1-2" aria-label="Back to reference 1-2">↩<sup class="footnote-ref">2</sup></a> <a href="#fnref-a-footnote-3" class="footnote-backref" data-footnote-backref data-footnote-backref-idx="1-3" aria-label="Back to reference 1-3">↩<sup class="footnote-ref">3</sup></a></p>
|
|
777
|
+
</li>
|
|
778
|
+
</ol>
|
|
779
|
+
</section>
|
|
780
|
+
````````````````````````````````
|
|
781
|
+
|
|
782
|
+
## Footnote reference labels are href escaped
|
|
783
|
+
|
|
784
|
+
```````````````````````````````` example
|
|
785
|
+
Hello[^"><script>alert(1)</script>]
|
|
786
|
+
|
|
787
|
+
[^"><script>alert(1)</script>]: pwned
|
|
788
|
+
.
|
|
789
|
+
<p>Hello<sup class="footnote-ref"><a href="#fn-%22%3E%3Cscript%3Ealert(1)%3C/script%3E" id="fnref-%22%3E%3Cscript%3Ealert(1)%3C/script%3E" data-footnote-ref>1</a></sup></p>
|
|
790
|
+
<section class="footnotes" data-footnotes>
|
|
791
|
+
<ol>
|
|
792
|
+
<li id="fn-%22%3E%3Cscript%3Ealert(1)%3C/script%3E">
|
|
793
|
+
<p>pwned <a href="#fnref-%22%3E%3Cscript%3Ealert(1)%3C/script%3E" class="footnote-backref" data-footnote-backref data-footnote-backref-idx="1" aria-label="Back to reference 1">↩</a></p>
|
|
794
|
+
</li>
|
|
795
|
+
</ol>
|
|
796
|
+
</section>
|
|
797
|
+
````````````````````````````````
|
|
798
|
+
|
|
799
|
+
## Interop
|
|
800
|
+
|
|
801
|
+
Autolink and strikethrough.
|
|
802
|
+
|
|
803
|
+
```````````````````````````````` example
|
|
804
|
+
~~www.google.com~~
|
|
805
|
+
|
|
806
|
+
~~http://google.com~~
|
|
807
|
+
.
|
|
808
|
+
<p><del><a href="http://www.google.com">www.google.com</a></del></p>
|
|
809
|
+
<p><del><a href="http://google.com">http://google.com</a></del></p>
|
|
810
|
+
````````````````````````````````
|
|
811
|
+
|
|
812
|
+
Autolink and tables.
|
|
813
|
+
|
|
814
|
+
```````````````````````````````` example
|
|
815
|
+
| a | b |
|
|
816
|
+
| --- | --- |
|
|
817
|
+
| https://github.com www.github.com | http://pokemon.com |
|
|
818
|
+
.
|
|
819
|
+
<table>
|
|
820
|
+
<thead>
|
|
821
|
+
<tr>
|
|
822
|
+
<th>a</th>
|
|
823
|
+
<th>b</th>
|
|
824
|
+
</tr>
|
|
825
|
+
</thead>
|
|
826
|
+
<tbody>
|
|
827
|
+
<tr>
|
|
828
|
+
<td><a href="https://github.com">https://github.com</a> <a href="http://www.github.com">www.github.com</a></td>
|
|
829
|
+
<td><a href="http://pokemon.com">http://pokemon.com</a></td>
|
|
830
|
+
</tr>
|
|
831
|
+
</tbody>
|
|
832
|
+
</table>
|
|
833
|
+
````````````````````````````````
|
|
834
|
+
|
|
835
|
+
## Task lists
|
|
836
|
+
|
|
837
|
+
```````````````````````````````` example
|
|
838
|
+
- [ ] foo
|
|
839
|
+
- [x] bar
|
|
840
|
+
.
|
|
841
|
+
<ul>
|
|
842
|
+
<li><input type="checkbox" disabled="" /> foo</li>
|
|
843
|
+
<li><input type="checkbox" checked="" disabled="" /> bar</li>
|
|
844
|
+
</ul>
|
|
845
|
+
````````````````````````````````
|
|
846
|
+
|
|
847
|
+
Show that a task list and a regular list get processed the same in
|
|
848
|
+
the way that sublists are created. If something works in a list
|
|
849
|
+
item, then it should work the same way with a task. The only
|
|
850
|
+
difference should be the tasklist marker. So, if we use something
|
|
851
|
+
other than a space or x, it won't be recognized as a task item, and
|
|
852
|
+
so will be treated as a regular item.
|
|
853
|
+
|
|
854
|
+
```````````````````````````````` example
|
|
855
|
+
- [x] foo
|
|
856
|
+
- [ ] bar
|
|
857
|
+
- [x] baz
|
|
858
|
+
- [ ] bim
|
|
859
|
+
|
|
860
|
+
Show a regular (non task) list to show that it has the same structure
|
|
861
|
+
- [@] foo
|
|
862
|
+
- [@] bar
|
|
863
|
+
- [@] baz
|
|
864
|
+
- [@] bim
|
|
865
|
+
.
|
|
866
|
+
<ul>
|
|
867
|
+
<li><input type="checkbox" checked="" disabled="" /> foo
|
|
868
|
+
<ul>
|
|
869
|
+
<li><input type="checkbox" disabled="" /> bar</li>
|
|
870
|
+
<li><input type="checkbox" checked="" disabled="" /> baz</li>
|
|
871
|
+
</ul>
|
|
872
|
+
</li>
|
|
873
|
+
<li><input type="checkbox" disabled="" /> bim</li>
|
|
874
|
+
</ul>
|
|
875
|
+
<p>Show a regular (non task) list to show that it has the same structure</p>
|
|
876
|
+
<ul>
|
|
877
|
+
<li>[@] foo
|
|
878
|
+
<ul>
|
|
879
|
+
<li>[@] bar</li>
|
|
880
|
+
<li>[@] baz</li>
|
|
881
|
+
</ul>
|
|
882
|
+
</li>
|
|
883
|
+
<li>[@] bim</li>
|
|
884
|
+
</ul>
|
|
885
|
+
````````````````````````````````
|
|
886
|
+
Use a larger indent -- a task list and a regular list should produce
|
|
887
|
+
the same structure.
|
|
888
|
+
|
|
889
|
+
```````````````````````````````` example
|
|
890
|
+
- [x] foo
|
|
891
|
+
- [ ] bar
|
|
892
|
+
- [x] baz
|
|
893
|
+
- [ ] bim
|
|
894
|
+
|
|
895
|
+
Show a regular (non task) list to show that it has the same structure
|
|
896
|
+
- [@] foo
|
|
897
|
+
- [@] bar
|
|
898
|
+
- [@] baz
|
|
899
|
+
- [@] bim
|
|
900
|
+
.
|
|
901
|
+
<ul>
|
|
902
|
+
<li><input type="checkbox" checked="" disabled="" /> foo
|
|
903
|
+
<ul>
|
|
904
|
+
<li><input type="checkbox" disabled="" /> bar</li>
|
|
905
|
+
<li><input type="checkbox" checked="" disabled="" /> baz</li>
|
|
906
|
+
</ul>
|
|
907
|
+
</li>
|
|
908
|
+
<li><input type="checkbox" disabled="" /> bim</li>
|
|
909
|
+
</ul>
|
|
910
|
+
<p>Show a regular (non task) list to show that it has the same structure</p>
|
|
911
|
+
<ul>
|
|
912
|
+
<li>[@] foo
|
|
913
|
+
<ul>
|
|
914
|
+
<li>[@] bar</li>
|
|
915
|
+
<li>[@] baz</li>
|
|
916
|
+
</ul>
|
|
917
|
+
</li>
|
|
918
|
+
<li>[@] bim</li>
|
|
919
|
+
</ul>
|
|
920
|
+
````````````````````````````````
|