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,260 @@
|
|
|
1
|
+
# Documentation Transformation Instructions for App Usage
|
|
2
|
+
|
|
3
|
+
This file contains instructions for transforming Apex documentation from command-line focused to app-focused (e.g., for Marked.app). Copy this file to `transform_for_app.md` and edit it as needed for your specific app.
|
|
4
|
+
|
|
5
|
+
## General Transformation Rules
|
|
6
|
+
|
|
7
|
+
### 1. Replace CLI Flags with Settings References
|
|
8
|
+
|
|
9
|
+
Replace all command-line flags with app settings paths using the format: `Settings->Category->Setting Name`
|
|
10
|
+
|
|
11
|
+
**Examples:**
|
|
12
|
+
- `--plugins` → `Settings->Processor->Include Plugins`
|
|
13
|
+
- `--mode unified` → Select `unified` in **Settings->Processor->Mode**
|
|
14
|
+
- `--meta-file FILE` → Select a metadata file in **Settings->Processor->Metadata File**, or specify a file in document metadata
|
|
15
|
+
- `--bibliography FILE` → Add bibliography files to the list in **Settings->Processor->Citations**, or specify in document metadata
|
|
16
|
+
|
|
17
|
+
**Patterns to replace:**
|
|
18
|
+
- `--[no-]flag` → `Settings->Category->Setting Name` (with enable/disable context)
|
|
19
|
+
- `--flag VALUE` → Set the value in **Settings->Category->Setting Name**
|
|
20
|
+
- `apex document.md --flag` → Use **Settings->Category->Setting Name** in the app
|
|
21
|
+
|
|
22
|
+
### 2. Remove Command-Line Examples
|
|
23
|
+
|
|
24
|
+
Remove all code blocks that contain only command-line examples. These are not relevant in an app context where the app handles execution.
|
|
25
|
+
|
|
26
|
+
**What to remove:**
|
|
27
|
+
- Code blocks showing `apex` commands
|
|
28
|
+
- Code blocks showing command-line usage examples
|
|
29
|
+
- Examples like:
|
|
30
|
+
```bash
|
|
31
|
+
apex document.md --mode unified
|
|
32
|
+
apex --plugins document.md
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**What to keep:**
|
|
36
|
+
- Code blocks showing Markdown syntax examples
|
|
37
|
+
- Code blocks showing configuration file examples (YAML, JSON, etc.)
|
|
38
|
+
- Code blocks showing actual code (Python, Ruby, etc.)
|
|
39
|
+
|
|
40
|
+
### 3. Remove References to Command Line Options
|
|
41
|
+
|
|
42
|
+
- Remove all links to "Command Line Options" page
|
|
43
|
+
- Remove phrases like "See [Command Line Options](Command-Line-Options) for details"
|
|
44
|
+
- Replace with app-specific instructions or remove entirely
|
|
45
|
+
|
|
46
|
+
### 4. Rewrite Usage Instructions
|
|
47
|
+
|
|
48
|
+
Transform instructions from "how to run commands" to "how to use the app":
|
|
49
|
+
|
|
50
|
+
**Before:**
|
|
51
|
+
> Use the `--mode` flag to select the processor mode.
|
|
52
|
+
|
|
53
|
+
**After:**
|
|
54
|
+
> Select the processor mode from **Settings->Processor->Mode**.
|
|
55
|
+
|
|
56
|
+
**Before:**
|
|
57
|
+
> Run `apex document.md --plugins` to enable plugins.
|
|
58
|
+
|
|
59
|
+
**After:**
|
|
60
|
+
> Enable plugins by checking **Settings->Processor->Include Plugins**.
|
|
61
|
+
|
|
62
|
+
## Page-Specific Transformations
|
|
63
|
+
|
|
64
|
+
### Multi-File-Documents
|
|
65
|
+
|
|
66
|
+
**Key changes:**
|
|
67
|
+
1. Indicate that Marked will automatically detect the file format for merge documents
|
|
68
|
+
2. Specify that mmd-merge documents must start with a `#merge` line to be automatically detected
|
|
69
|
+
3. Replace CLI examples with app usage instructions
|
|
70
|
+
|
|
71
|
+
**Example transformation:**
|
|
72
|
+
- Add: "Marked will automatically detect the file format for merge documents."
|
|
73
|
+
- Add: "MMD merge documents must start with a `#merge` line to be automatically detected by Marked."
|
|
74
|
+
- Replace: "Use `apex --combine file1.md file2.md`" → "Select multiple files and enable **Settings->Processor->Combine Files**"
|
|
75
|
+
|
|
76
|
+
### Plugins
|
|
77
|
+
|
|
78
|
+
**Key changes:**
|
|
79
|
+
1. Indicate that Marked has an "Install Plugins" option that allows selecting a plugin directory and automatically installing to `~/.config/apex/plugins`
|
|
80
|
+
2. Mention that Marked lists available plugins in a Plugins panel within Processor settings
|
|
81
|
+
3. Remove all references and links to "Command Line Options"
|
|
82
|
+
4. Replace CLI installation examples with app-based installation instructions
|
|
83
|
+
|
|
84
|
+
**Example transformation:**
|
|
85
|
+
- Add: "Marked provides an **Install Plugins** option that allows you to select a plugin directory on your disk and have it automatically installed to `~/.config/apex/plugins`."
|
|
86
|
+
- Add: "Marked will list available plugins in a **Plugins panel** within the Processor settings."
|
|
87
|
+
- Remove: "Install plugins using `apex --install-plugin ID-or-URL`"
|
|
88
|
+
|
|
89
|
+
### Modes
|
|
90
|
+
|
|
91
|
+
**Key changes:**
|
|
92
|
+
1. Rewrite to indicate that modes (unified, multimarkdown, commonmark, kramdown, gfm) can be selected from the Settings->Processor panel
|
|
93
|
+
2. Keep the descriptions of the modes the same
|
|
94
|
+
3. Remove CLI command examples
|
|
95
|
+
4. Remove links to "Command Line Options"
|
|
96
|
+
|
|
97
|
+
**Example transformation:**
|
|
98
|
+
- Replace: "Use `--mode unified` to enable unified mode" → "Select `unified` from **Settings->Processor->Mode**"
|
|
99
|
+
- Keep: All mode descriptions and feature lists
|
|
100
|
+
- Remove: All `apex --mode` examples
|
|
101
|
+
|
|
102
|
+
### Header IDs
|
|
103
|
+
|
|
104
|
+
**Key changes:**
|
|
105
|
+
1. Reference a Settings->Processor->Header IDs option that will be a dropdown for selecting the header ID mode
|
|
106
|
+
2. Remove CLI command examples
|
|
107
|
+
3. Remove links to "Command Line Options"
|
|
108
|
+
|
|
109
|
+
**Example transformation:**
|
|
110
|
+
- Replace: "Use `--id-format gfm`" → "Select `gfm` from **Settings->Processor->Header ID Format**"
|
|
111
|
+
- Replace: "Disable with `--no-ids`" → "Disable in **Settings->Processor->Generate Header IDs**"
|
|
112
|
+
|
|
113
|
+
### Citations
|
|
114
|
+
|
|
115
|
+
**Key changes:**
|
|
116
|
+
1. Mention that bibliography files can be added to a list in Settings->Processor->Citations, or specified in document metadata
|
|
117
|
+
2. Remove CLI command examples
|
|
118
|
+
3. Remove links to "Command Line Options"
|
|
119
|
+
|
|
120
|
+
**Example transformation:**
|
|
121
|
+
- Replace: "Use `--bibliography refs.bib`" → "Add bibliography files to the list in **Settings->Processor->Citations**, or specify in document metadata"
|
|
122
|
+
- Keep: All citation syntax examples
|
|
123
|
+
|
|
124
|
+
### Syntax
|
|
125
|
+
|
|
126
|
+
**Key changes:**
|
|
127
|
+
1. Replace all CLI flag references with Settings references
|
|
128
|
+
2. Remove CLI command examples
|
|
129
|
+
3. Remove links to "Command Line Options"
|
|
130
|
+
4. Keep all syntax examples and feature descriptions
|
|
131
|
+
|
|
132
|
+
**Example transformation:**
|
|
133
|
+
- Replace: "Use `--sup-sub` to enable" → "Enable in **Settings->Processor->Superscript/Subscript**"
|
|
134
|
+
- Replace: "Use `--autolink` to enable" → "Enable **Settings->Processor->Autolinks**"
|
|
135
|
+
- Remove: All `apex --flag` command examples
|
|
136
|
+
|
|
137
|
+
### Inline-Attribute-Lists
|
|
138
|
+
|
|
139
|
+
**Key changes:**
|
|
140
|
+
1. Remove CLI references
|
|
141
|
+
2. Remove links to "Command Line Options"
|
|
142
|
+
3. Keep all syntax examples
|
|
143
|
+
|
|
144
|
+
### Metadata-Transforms
|
|
145
|
+
|
|
146
|
+
**Key changes:**
|
|
147
|
+
1. Remove CLI references
|
|
148
|
+
2. Remove links to "Command Line Options"
|
|
149
|
+
3. Keep all transform syntax examples and descriptions
|
|
150
|
+
|
|
151
|
+
### Credits
|
|
152
|
+
|
|
153
|
+
**Key changes:**
|
|
154
|
+
- No specific app-focused transformations needed (primarily lists external projects)
|
|
155
|
+
- Keep content as-is
|
|
156
|
+
|
|
157
|
+
## Settings Path Structure
|
|
158
|
+
|
|
159
|
+
Use this structure for Settings references:
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
Settings->Category->Setting Name
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**Categories:**
|
|
166
|
+
- **General**: General app settings (e.g., Show Progress)
|
|
167
|
+
- **Processor**: Processing options (e.g., Mode, Plugins, Header IDs)
|
|
168
|
+
- **Output**: Output formatting options (e.g., Standalone HTML, CSS File)
|
|
169
|
+
|
|
170
|
+
**Examples:**
|
|
171
|
+
- `Settings->Processor->Mode`
|
|
172
|
+
- `Settings->Processor->Include Plugins`
|
|
173
|
+
- `Settings->Processor->Header ID Format`
|
|
174
|
+
- `Settings->Processor->Citations`
|
|
175
|
+
- `Settings->Output->Standalone HTML`
|
|
176
|
+
- `Settings->Output->CSS File`
|
|
177
|
+
|
|
178
|
+
## Formatting Guidelines
|
|
179
|
+
|
|
180
|
+
### Settings References
|
|
181
|
+
|
|
182
|
+
- Use **bold** for Settings paths: **Settings->Processor->Mode**
|
|
183
|
+
- Use **bold** for UI elements: **Plugins panel**, **Install Plugins** option
|
|
184
|
+
- Use regular text for descriptive phrases: "select from", "enable by checking"
|
|
185
|
+
|
|
186
|
+
### Code Blocks
|
|
187
|
+
|
|
188
|
+
- Keep Markdown syntax examples in code blocks
|
|
189
|
+
- Keep configuration file examples (YAML, JSON) in code blocks
|
|
190
|
+
- Remove command-line execution examples
|
|
191
|
+
- When showing app usage, use descriptive text instead of code blocks
|
|
192
|
+
|
|
193
|
+
### Links
|
|
194
|
+
|
|
195
|
+
- Remove links to "Command Line Options"
|
|
196
|
+
- Keep internal links to other documentation pages (Syntax, Modes, etc.)
|
|
197
|
+
- Update links to reference app features where appropriate
|
|
198
|
+
|
|
199
|
+
## Quality Checklist
|
|
200
|
+
|
|
201
|
+
After transformation, verify:
|
|
202
|
+
|
|
203
|
+
- [ ] All CLI flags replaced with Settings references
|
|
204
|
+
- [ ] All command-line examples removed
|
|
205
|
+
- [ ] All links to "Command Line Options" removed
|
|
206
|
+
- [ ] App-specific instructions added where appropriate
|
|
207
|
+
- [ ] Markdown syntax examples preserved
|
|
208
|
+
- [ ] Configuration examples preserved
|
|
209
|
+
- [ ] Page-specific transformations applied
|
|
210
|
+
- [ ] Settings paths use consistent formatting
|
|
211
|
+
- [ ] Text flows naturally without CLI references
|
|
212
|
+
- [ ] No broken internal links
|
|
213
|
+
|
|
214
|
+
## Example: Before and After
|
|
215
|
+
|
|
216
|
+
### Before (CLI-focused)
|
|
217
|
+
|
|
218
|
+
```markdown
|
|
219
|
+
## Enabling Plugins
|
|
220
|
+
|
|
221
|
+
Plugins are disabled by default. To enable them, use the `--plugins` flag:
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
apex document.md --plugins
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
You can also install plugins using:
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
apex --install-plugin kbd
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
See [Command Line Options](Command-Line-Options) for all plugin-related flags.
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### After (App-focused)
|
|
237
|
+
|
|
238
|
+
```markdown
|
|
239
|
+
## Enabling Plugins
|
|
240
|
+
|
|
241
|
+
Plugins are disabled by default. Enable plugins by checking **Settings->Processor->Include Plugins**.
|
|
242
|
+
|
|
243
|
+
You can also enable plugins in document metadata (in the document's front matter):
|
|
244
|
+
|
|
245
|
+
```yaml
|
|
246
|
+
---
|
|
247
|
+
title: Plugin demo
|
|
248
|
+
plugins: true
|
|
249
|
+
---
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
Marked provides an **Install Plugins** option that allows you to select a plugin directory on your disk and have it automatically installed to `~/.config/apex/plugins`. Marked will list available plugins in a **Plugins panel** within the Processor settings.
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## Notes
|
|
256
|
+
|
|
257
|
+
- This transformation is designed for apps like Marked.app that provide a GUI for Apex
|
|
258
|
+
- The goal is to make documentation user-friendly for app users who don't use the command line
|
|
259
|
+
- Settings paths are suggestions and should be adjusted to match your app's actual settings structure
|
|
260
|
+
- Some pages may need additional app-specific context beyond these general rules
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# Bracketed Spans Demo
|
|
2
|
+
|
|
3
|
+
Bracketed spans are a Pandoc-inspired feature that allows you to create HTML `<span>` elements with attributes using the syntax `[text]{IAL}`. The text inside the brackets is processed as markdown, and the IAL (Inline Attribute List) provides HTML attributes.
|
|
4
|
+
|
|
5
|
+
## Basic Usage
|
|
6
|
+
|
|
7
|
+
This is [some *text*]{.highlight} with a class.
|
|
8
|
+
|
|
9
|
+
This is [another example]{#custom-id .important} with an ID
|
|
10
|
+
and class.
|
|
11
|
+
|
|
12
|
+
This is [text with **bold**]{.bold-style} that processes
|
|
13
|
+
markdown inside.
|
|
14
|
+
|
|
15
|
+
## Attributes
|
|
16
|
+
|
|
17
|
+
You can use all standard IAL attribute types:
|
|
18
|
+
|
|
19
|
+
### IDs
|
|
20
|
+
|
|
21
|
+
This is [text]{#my-id} with just an ID.
|
|
22
|
+
|
|
23
|
+
### Classes
|
|
24
|
+
|
|
25
|
+
This is [text]{.class1 .class2 .class3} with multiple
|
|
26
|
+
classes.
|
|
27
|
+
|
|
28
|
+
### Key-Value Attributes
|
|
29
|
+
|
|
30
|
+
This is [text]{key="value" title="Tooltip"} with custom
|
|
31
|
+
attributes.
|
|
32
|
+
|
|
33
|
+
This is [text]{data-id="123" aria-label="Description"} with
|
|
34
|
+
data and ARIA attributes.
|
|
35
|
+
|
|
36
|
+
### Combined Attributes
|
|
37
|
+
|
|
38
|
+
This is [text]{#my-id .highlight .important key="value"}
|
|
39
|
+
combining all attribute types.
|
|
40
|
+
|
|
41
|
+
## Markdown Processing
|
|
42
|
+
|
|
43
|
+
The text inside brackets is fully processed as markdown:
|
|
44
|
+
|
|
45
|
+
- [**Bold text**]{.bold}
|
|
46
|
+
- [*Italic text*]{.italic}
|
|
47
|
+
- [`Code spans`]{.code}
|
|
48
|
+
- [Text with [nested brackets]]{.nested}
|
|
49
|
+
|
|
50
|
+
## Nested Brackets
|
|
51
|
+
|
|
52
|
+
Bracketed spans support nested brackets. The parser
|
|
53
|
+
correctly matches the outer brackets:
|
|
54
|
+
|
|
55
|
+
This is [Text with [nested brackets]]{.nested} that
|
|
56
|
+
preserves the inner brackets.
|
|
57
|
+
|
|
58
|
+
This is [Text with [multiple [levels] of
|
|
59
|
+
nesting]]{.multi-level} that handles deep nesting.
|
|
60
|
+
|
|
61
|
+
This is [Text with [inner] and [more inner]
|
|
62
|
+
brackets]{.multiple-nested} that handles multiple nested
|
|
63
|
+
pairs.
|
|
64
|
+
|
|
65
|
+
## Reference Links Take Precedence
|
|
66
|
+
|
|
67
|
+
If the bracketed text matches a reference link definition,
|
|
68
|
+
it will be treated as a link instead of a span:
|
|
69
|
+
|
|
70
|
+
This is [a link][example] that should be a link, not a span.
|
|
71
|
+
|
|
72
|
+
[example]: https://example.com
|
|
73
|
+
|
|
74
|
+
This is [another link][example2] with a title.
|
|
75
|
+
|
|
76
|
+
[example2]: https://example.org "Example Site"
|
|
77
|
+
|
|
78
|
+
## Use Cases
|
|
79
|
+
|
|
80
|
+
### Styling Inline Text
|
|
81
|
+
|
|
82
|
+
You can [highlight important text]{.highlight .important}
|
|
83
|
+
inline.
|
|
84
|
+
|
|
85
|
+
You can [mark text as new]{.new} or
|
|
86
|
+
[deprecated]{.deprecated}.
|
|
87
|
+
|
|
88
|
+
### Adding Metadata
|
|
89
|
+
|
|
90
|
+
You can [add data attributes]{data-type="note" data-id="42"}
|
|
91
|
+
for JavaScript.
|
|
92
|
+
|
|
93
|
+
You can [add ARIA labels]{aria-label="Important notice"} for
|
|
94
|
+
accessibility.
|
|
95
|
+
|
|
96
|
+
### Semantic Markup
|
|
97
|
+
|
|
98
|
+
You can [mark text as a term]{.term} or
|
|
99
|
+
[citation]{.citation}.
|
|
100
|
+
|
|
101
|
+
## Examples in Context
|
|
102
|
+
|
|
103
|
+
Here's a paragraph with [highlighted text]{.highlight},
|
|
104
|
+
[important text]{.important}, and [a term]{.term}.
|
|
105
|
+
|
|
106
|
+
Here's a list with styled items:
|
|
107
|
+
|
|
108
|
+
- [First item]{.first}
|
|
109
|
+
- [Second item]{.second}
|
|
110
|
+
- [Third item]{.third}
|
|
111
|
+
|
|
112
|
+
## Notes
|
|
113
|
+
|
|
114
|
+
- Bracketed spans are enabled by default in unified mode
|
|
115
|
+
- Use `--spans` to enable in other modes
|
|
116
|
+
- Use `--no-spans` to disable in unified mode
|
|
117
|
+
- Reference links always take precedence over spans
|
|
118
|
+
- Markdown inside spans is fully processed
|
|
119
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<h1>Apex Markdown Example</h1>
|
|
2
|
+
<p>This is a comprehensive example document showing various Markdown features supported by Apex.</p>
|
|
3
|
+
<h2>Basic Formatting</h2>
|
|
4
|
+
<p>This is a paragraph with **bold text**, *italic text*, and ***bold italic text***.</p>
|
|
5
|
+
<p>You can also use `inline code` within paragraphs.</p>
|
|
6
|
+
<h2>Headings</h2>
|
|
7
|
+
<h3>Level 3</h3>
|
|
8
|
+
<h4>Level 4</h4>
|
|
9
|
+
<h5>Level 5</h5>
|
|
10
|
+
<h6>Level 6</h6>
|
|
11
|
+
<h2>Lists</h2>
|
|
12
|
+
<h3>Unordered Lists</h3>
|
|
13
|
+
<p>- Item 1
|
|
14
|
+
- Item 2
|
|
15
|
+
- Nested item
|
|
16
|
+
- Another nested item
|
|
17
|
+
- Item 3</p>
|
|
18
|
+
<h3>Ordered Lists</h3>
|
|
19
|
+
<p>1. First item
|
|
20
|
+
2. Second item
|
|
21
|
+
3. Third item</p>
|
|
22
|
+
<h2>Code Blocks</h2>
|
|
23
|
+
<pre><code class="language-python">def hello_world():
|
|
24
|
+
print("Hello, World!")
|
|
25
|
+
return 42
|
|
26
|
+
|
|
27
|
+
result = hello_world()
|
|
28
|
+
</code></pre>
|
|
29
|
+
<pre><code class="language-javascript">function greet(name) {
|
|
30
|
+
console.log(`Hello, ${name}!`);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
greet("Apex");
|
|
34
|
+
</code></pre>
|
|
35
|
+
<h2>Links and Images</h2>
|
|
36
|
+
<p>[Apex on GitHub](https://github.com)</p>
|
|
37
|
+
<p></p>
|
|
38
|
+
<h2>Blockquotes</h2>
|
|
39
|
+
<p>> This is a blockquote.
|
|
40
|
+
> It can span multiple lines.
|
|
41
|
+
>
|
|
42
|
+
> And contain multiple paragraphs.</p>
|
|
43
|
+
<h2>Horizontal Rules</h2>
|
|
44
|
+
<p>---</p>
|
|
45
|
+
<h2>Special Characters</h2>
|
|
46
|
+
<p>HTML characters like <tag> and & are automatically escaped.
|
|
47
|
+
Quotes like "these" are handled properly.</p>
|
|
48
|
+
<h2>More Features (Coming Soon)</h2>
|
|
49
|
+
<p>- [ ] Task lists
|
|
50
|
+
- [x] Basic Markdown
|
|
51
|
+
- [ ] Tables
|
|
52
|
+
- [ ] Footnotes
|
|
53
|
+
- [ ] Definition lists</p>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Apex Markdown Example
|
|
2
|
+
|
|
3
|
+
This is a comprehensive example document showing various
|
|
4
|
+
Markdown features supported by Apex.
|
|
5
|
+
|
|
6
|
+
## Basic Formatting
|
|
7
|
+
|
|
8
|
+
This is a paragraph with **bold text**, *italic text*, and
|
|
9
|
+
***bold italic text***.
|
|
10
|
+
|
|
11
|
+
You can also use `inline code` within paragraphs.
|
|
12
|
+
|
|
13
|
+
## Headings
|
|
14
|
+
|
|
15
|
+
### Level 3
|
|
16
|
+
#### Level 4
|
|
17
|
+
##### Level 5
|
|
18
|
+
###### Level 6
|
|
19
|
+
|
|
20
|
+
## Lists
|
|
21
|
+
|
|
22
|
+
### Unordered Lists
|
|
23
|
+
|
|
24
|
+
- Item 1
|
|
25
|
+
- Item 2
|
|
26
|
+
- Nested item
|
|
27
|
+
- Another nested item
|
|
28
|
+
- Item 3
|
|
29
|
+
|
|
30
|
+
### Ordered Lists
|
|
31
|
+
|
|
32
|
+
1. First item
|
|
33
|
+
2. Second item
|
|
34
|
+
3. Third item
|
|
35
|
+
|
|
36
|
+
## Code Blocks
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
def hello_world():
|
|
40
|
+
print("Hello, World!")
|
|
41
|
+
return 42
|
|
42
|
+
|
|
43
|
+
result = hello_world()
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```javascript
|
|
48
|
+
function greet(name) {
|
|
49
|
+
console.log(`Hello, ${name}!`);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
greet("Apex");
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Links and Images
|
|
57
|
+
|
|
58
|
+
[Apex on GitHub](https://github.com)
|
|
59
|
+
|
|
60
|
+

|
|
61
|
+
|
|
62
|
+
## Blockquotes
|
|
63
|
+
|
|
64
|
+
> This is a blockquote.
|
|
65
|
+
> It can span multiple lines.
|
|
66
|
+
>
|
|
67
|
+
> And contain multiple paragraphs.
|
|
68
|
+
|
|
69
|
+
## Horizontal Rules
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Special Characters
|
|
74
|
+
|
|
75
|
+
HTML characters like <tag> and & are automatically escaped.
|
|
76
|
+
Quotes like "these" are handled properly.
|
|
77
|
+
|
|
78
|
+
## More Features (Coming Soon)
|
|
79
|
+
|
|
80
|
+
- [ ] Task lists
|
|
81
|
+
- [x] Basic Markdown
|
|
82
|
+
- [ ] Tables
|
|
83
|
+
- [ ] Footnotes
|
|
84
|
+
- [ ] Definition lists
|
|
85
|
+
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# Pandoc Fenced Divs Demo
|
|
2
|
+
|
|
3
|
+
This document demonstrates all features of the Pandoc fenced
|
|
4
|
+
divs extension.
|
|
5
|
+
|
|
6
|
+
## Basic Fenced Div
|
|
7
|
+
|
|
8
|
+
A simple fenced div with ID and class:
|
|
9
|
+
|
|
10
|
+
::::: {#special .sidebar}
|
|
11
|
+
Here is a paragraph.
|
|
12
|
+
|
|
13
|
+
And another paragraph with more content.
|
|
14
|
+
:::::
|
|
15
|
+
|
|
16
|
+
## Fenced Div with Multiple Classes
|
|
17
|
+
|
|
18
|
+
::::: {.warning .important .highlight}
|
|
19
|
+
This is a warning div with multiple classes.
|
|
20
|
+
:::::
|
|
21
|
+
|
|
22
|
+
## Fenced Div with Attributes
|
|
23
|
+
|
|
24
|
+
::::: {#mydiv .container key="value" data-id="123"}
|
|
25
|
+
This div has an ID, a class, and custom attributes.
|
|
26
|
+
:::::
|
|
27
|
+
|
|
28
|
+
## Single Unbraced Word (Treated as Class)
|
|
29
|
+
|
|
30
|
+
::: sidebar
|
|
31
|
+
This is a div with a single unbraced word treated as a class
|
|
32
|
+
name.
|
|
33
|
+
:::
|
|
34
|
+
|
|
35
|
+
## Fenced Div with Trailing Colons
|
|
36
|
+
|
|
37
|
+
According to the spec, attributes may optionally be followed
|
|
38
|
+
by another string of consecutive colons:
|
|
39
|
+
|
|
40
|
+
::::: {#special .sidebar} ::::
|
|
41
|
+
Here is a paragraph with trailing colons after the
|
|
42
|
+
attributes.
|
|
43
|
+
|
|
44
|
+
And another.
|
|
45
|
+
::::::::::::::::::
|
|
46
|
+
|
|
47
|
+
## Nested Divs
|
|
48
|
+
|
|
49
|
+
Fenced divs can be nested. Opening fences must have
|
|
50
|
+
attributes:
|
|
51
|
+
|
|
52
|
+
::: Warning ::::::
|
|
53
|
+
This is a warning.
|
|
54
|
+
|
|
55
|
+
::: Danger
|
|
56
|
+
This is a warning within a warning.
|
|
57
|
+
:::
|
|
58
|
+
::::::::::::::::::
|
|
59
|
+
|
|
60
|
+
## Complex Nested Example
|
|
61
|
+
|
|
62
|
+
::::: {#outer .container} ::::
|
|
63
|
+
Outer div content.
|
|
64
|
+
|
|
65
|
+
::: {.inner .nested}
|
|
66
|
+
First inner div.
|
|
67
|
+
|
|
68
|
+
::: {.deep}
|
|
69
|
+
Deeply nested div.
|
|
70
|
+
:::
|
|
71
|
+
:::
|
|
72
|
+
|
|
73
|
+
More outer content.
|
|
74
|
+
::::::::::::::::::
|
|
75
|
+
|
|
76
|
+
## Div with All Attribute Types
|
|
77
|
+
|
|
78
|
+
::::: {#complex-id .class1 .class2 .class3 key1="value1"
|
|
79
|
+
key2='value2' data-test="123"}
|
|
80
|
+
This div demonstrates:
|
|
81
|
+
|
|
82
|
+
- ID (#complex-id)
|
|
83
|
+
- Multiple classes (.class1, .class2, .class3)
|
|
84
|
+
- Custom attributes (key1, key2, data-test)
|
|
85
|
+
|
|
86
|
+
:::::
|
|
87
|
+
|
|
88
|
+
## Div Separated by Blank Lines
|
|
89
|
+
|
|
90
|
+
This paragraph is before the div.
|
|
91
|
+
|
|
92
|
+
::::: {.separated}
|
|
93
|
+
This div is properly separated by blank lines from the
|
|
94
|
+
preceding paragraph.
|
|
95
|
+
:::::
|
|
96
|
+
|
|
97
|
+
This paragraph is after the div.
|
|
98
|
+
|
|
99
|
+
## Minimal Div (3 Colons Minimum)
|
|
100
|
+
|
|
101
|
+
::: {.minimal}
|
|
102
|
+
This uses the minimum 3 colons for the fence.
|
|
103
|
+
:::
|
|
104
|
+
|
|
105
|
+
## Div with Quoted Values
|
|
106
|
+
|
|
107
|
+
::::: {#quoted .test attr1="quoted value" attr2='single
|
|
108
|
+
quoted'}
|
|
109
|
+
This div has attributes with quoted values containing
|
|
110
|
+
spaces.
|
|
111
|
+
:::::
|
|
112
|
+
|
|
113
|
+
## Multiple Divs in Sequence
|
|
114
|
+
|
|
115
|
+
::: {.first}
|
|
116
|
+
First div.
|
|
117
|
+
:::
|
|
118
|
+
|
|
119
|
+
::: {.second}
|
|
120
|
+
Second div.
|
|
121
|
+
:::
|
|
122
|
+
|
|
123
|
+
::: {.third}
|
|
124
|
+
Third div.
|
|
125
|
+
:::
|
|
126
|
+
|
|
127
|
+
## Div with Empty Content
|
|
128
|
+
|
|
129
|
+
::: {.empty}
|
|
130
|
+
:::
|
|
131
|
+
|
|
132
|
+
## Div with Only ID
|
|
133
|
+
|
|
134
|
+
::: {#only-id}
|
|
135
|
+
This div has only an ID, no classes.
|
|
136
|
+
:::
|
|
137
|
+
|
|
138
|
+
## Div with Only Classes
|
|
139
|
+
|
|
140
|
+
::: {.only-classes .multiple}
|
|
141
|
+
This div has only classes, no ID.
|
|
142
|
+
:::
|
|
143
|
+
|
|
144
|
+
## Div with Mixed Content
|
|
145
|
+
|
|
146
|
+
::::: {#mixed .content}
|
|
147
|
+
This div contains:
|
|
148
|
+
|
|
149
|
+
- A list item
|
|
150
|
+
- Another list item
|
|
151
|
+
|
|
152
|
+
And a paragraph.
|
|
153
|
+
|
|
154
|
+
> A blockquote
|
|
155
|
+
|
|
156
|
+
And more content.
|
|
157
|
+
:::::
|
|
158
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
|
|
2
|
+
sed do eiusmod tempor incididunt ut labore et dolore magna
|
|
3
|
+
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
|
|
4
|
+
ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
5
|
+
Duis aute irure dolor in reprehenderit in {% kbd $@3 %}
|
|
6
|
+
voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
|
7
|
+
Excepteur sint occaecat cupidatat non proident, sunt in
|
|
8
|
+
culpa qui officia deserunt mollit anim id est laborum.
|