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,177 @@
|
|
|
1
|
+
# IAL (Inline Attribute Lists) Demo
|
|
2
|
+
|
|
3
|
+
This document demonstrates all supported IAL features in
|
|
4
|
+
Apex.
|
|
5
|
+
|
|
6
|
+
## Block-Level IALs (Next-Line)
|
|
7
|
+
|
|
8
|
+
Block-level IALs appear on a separate line after the element
|
|
9
|
+
they apply to.
|
|
10
|
+
|
|
11
|
+
### Headings with IALs
|
|
12
|
+
|
|
13
|
+
# Heading with ID
|
|
14
|
+
{: #custom-heading-id}
|
|
15
|
+
|
|
16
|
+
## Heading with Class
|
|
17
|
+
{: .highlight}
|
|
18
|
+
|
|
19
|
+
### Heading with Both
|
|
20
|
+
{: #heading-id .class1 .class2}
|
|
21
|
+
|
|
22
|
+
#### Multiple Classes
|
|
23
|
+
{: .primary .large .bold}
|
|
24
|
+
|
|
25
|
+
### Paragraphs with IALs
|
|
26
|
+
|
|
27
|
+
This paragraph has a class applied to it.
|
|
28
|
+
{: .tip}
|
|
29
|
+
|
|
30
|
+
This paragraph has an ID and multiple classes.
|
|
31
|
+
{: #paragraph-id .important .note}
|
|
32
|
+
|
|
33
|
+
### Lists with IALs
|
|
34
|
+
|
|
35
|
+
- First item
|
|
36
|
+
- Second item
|
|
37
|
+
- Third item
|
|
38
|
+
|
|
39
|
+
{: .unordered-list}
|
|
40
|
+
|
|
41
|
+
1. Numbered item one
|
|
42
|
+
2. Numbered item two
|
|
43
|
+
3. Numbered item three
|
|
44
|
+
|
|
45
|
+
{: #ordered-list .numbered}
|
|
46
|
+
|
|
47
|
+
### Blockquotes with IALs
|
|
48
|
+
|
|
49
|
+
> This is a blockquote with attributes.
|
|
50
|
+
{: .quote .inspirational}
|
|
51
|
+
|
|
52
|
+
## Inline Span-Level IALs
|
|
53
|
+
|
|
54
|
+
Inline IALs appear immediately after inline elements within
|
|
55
|
+
paragraphs.
|
|
56
|
+
|
|
57
|
+
### Links with Inline IALs
|
|
58
|
+
|
|
59
|
+
This is a [regular link](https://example.com) without an
|
|
60
|
+
IAL.
|
|
61
|
+
|
|
62
|
+
Here's a paragraph with a [styled
|
|
63
|
+
link](https://example.com){:.button} that has a button
|
|
64
|
+
class.
|
|
65
|
+
|
|
66
|
+
You can have [multiple
|
|
67
|
+
links](https://example.com){:.link-primary} with [different
|
|
68
|
+
classes](https://example.com){:.link-secondary} in the same
|
|
69
|
+
paragraph.
|
|
70
|
+
|
|
71
|
+
Links with the [same URL](https://example.com) should still
|
|
72
|
+
work correctly when [one has an
|
|
73
|
+
IAL](https://example.com){:.special-link}.
|
|
74
|
+
|
|
75
|
+
### Images with Inline IALs
|
|
76
|
+
|
|
77
|
+

|
|
78
|
+
|
|
79
|
+
{:.logo .centered}
|
|
80
|
+
|
|
81
|
+
{:#site-icon .icon}
|
|
82
|
+
|
|
83
|
+
### Emphasis with Inline IALs
|
|
84
|
+
|
|
85
|
+
This paragraph has **bold text**{:.bold-style} with a custom
|
|
86
|
+
class and *italic text*{:.italic-style} with another class.
|
|
87
|
+
|
|
88
|
+
You can combine **bold**{:.bold} and *italic*{:.italic} in
|
|
89
|
+
the same paragraph with different styles.
|
|
90
|
+
|
|
91
|
+
Nested **bold with *italic*{:.nested-italic}
|
|
92
|
+
inside**{:.bold-wrapper} works too.
|
|
93
|
+
|
|
94
|
+
### Code with Inline IALs
|
|
95
|
+
|
|
96
|
+
Use `inline code`{:.code-inline} for code snippets with
|
|
97
|
+
styling.
|
|
98
|
+
|
|
99
|
+
You can have multiple `code spans`{:.code-1} and `more
|
|
100
|
+
code`{:.code-2} with different classes.
|
|
101
|
+
|
|
102
|
+
### Mixed Inline Elements
|
|
103
|
+
|
|
104
|
+
This paragraph combines a
|
|
105
|
+
[link](https://example.com){:.link-class}, **bold
|
|
106
|
+
text**{:.bold-class}, *italic text*{:.italic-class}, and
|
|
107
|
+
`code`{:.code-class} all with different IALs.
|
|
108
|
+
|
|
109
|
+
## Complex Examples
|
|
110
|
+
|
|
111
|
+
### Multiple IALs in Sequence
|
|
112
|
+
|
|
113
|
+
[First link](url1){:.first} and [second
|
|
114
|
+
link](url2){:.second} and [third link](url3){:.third} all in
|
|
115
|
+
one paragraph.
|
|
116
|
+
|
|
117
|
+
**First bold**{:.b1}, **second bold**{:.b2}, and **third
|
|
118
|
+
bold**{:.b3} text elements.
|
|
119
|
+
|
|
120
|
+
### IALs with Text After
|
|
121
|
+
|
|
122
|
+
[Click here](https://example.com){:.button} to visit our
|
|
123
|
+
website and learn more.
|
|
124
|
+
|
|
125
|
+
**Important**: This text has an IAL{:.highlight} that isn't
|
|
126
|
+
associated with a span or block level element (bold,
|
|
127
|
+
italics, link, etc.) and is therefore ignored (left in the
|
|
128
|
+
text).
|
|
129
|
+
|
|
130
|
+
### IALs with Duplicate URLs
|
|
131
|
+
|
|
132
|
+
Here's a [regular link](https://example.com) to demonstrate
|
|
133
|
+
link styling.
|
|
134
|
+
|
|
135
|
+
[Click This Button](https://example.com){:.button}
|
|
136
|
+
|
|
137
|
+
Both links point to the same URL, but only the second one
|
|
138
|
+
has the button class.
|
|
139
|
+
|
|
140
|
+
### IALs with Multiple Attributes
|
|
141
|
+
|
|
142
|
+
[Link with multiple classes](url){:.primary .large .button}
|
|
143
|
+
|
|
144
|
+
**Bold with ID and classes**{:#bold-id .highlight
|
|
145
|
+
.important}
|
|
146
|
+
|
|
147
|
+
## Edge Cases
|
|
148
|
+
|
|
149
|
+
### IAL at End of Paragraph
|
|
150
|
+
|
|
151
|
+
This paragraph ends with a
|
|
152
|
+
[link](https://example.com){:.end-link}.
|
|
153
|
+
|
|
154
|
+
### IAL with Whitespace
|
|
155
|
+
|
|
156
|
+
[Link](url){: .spaced-class } works with spaces.
|
|
157
|
+
|
|
158
|
+
### IALs in Lists
|
|
159
|
+
|
|
160
|
+
- List item with [link](url){:.list-link}
|
|
161
|
+
- Another item with **bold**{:.list-bold} text
|
|
162
|
+
- Final item with `code`{:.list-code}
|
|
163
|
+
|
|
164
|
+
## Summary
|
|
165
|
+
|
|
166
|
+
IALs provide a powerful way to add HTML attributes to
|
|
167
|
+
markdown elements:
|
|
168
|
+
|
|
169
|
+
- Block-level IALs use next-line syntax: `{: .class #id}`
|
|
170
|
+
|
|
171
|
+
Inline IALs appear immediately after elements: `[link](url){:.class}`
|
|
172
|
+
|
|
173
|
+
- Support for IDs, classes, and custom attributes
|
|
174
|
+
- Works with headings, paragraphs, lists, blockquotes,
|
|
175
|
+
|
|
176
|
+
links, images, emphasis, and code
|
|
177
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Emoji Autocorrect Test
|
|
2
|
+
|
|
3
|
+
This file tests the emoji autocorrect functionality with various formatting and spelling errors.
|
|
4
|
+
|
|
5
|
+
## Uppercase Tests
|
|
6
|
+
|
|
7
|
+
These should be normalized to lowercase:
|
|
8
|
+
- :Smile: should become :smile:
|
|
9
|
+
- :ROCKET: should become :rocket:
|
|
10
|
+
- :Heart: should become :heart:
|
|
11
|
+
- :STAR: should become :star:
|
|
12
|
+
- :Fire: should become :fire:
|
|
13
|
+
|
|
14
|
+
## Hyphen Tests
|
|
15
|
+
|
|
16
|
+
These should have hyphens converted to underscores:
|
|
17
|
+
- :smile-face: should become :smile: (closest match, :smile_face: doesn't exist)
|
|
18
|
+
- :thumbs-up: should become :thumbsup:
|
|
19
|
+
- :check-flag: should become :checkered_flag:
|
|
20
|
+
- :heart-eyes: should become :heart_eyes:
|
|
21
|
+
- :fire-engine: should become :fire_engine:
|
|
22
|
+
|
|
23
|
+
## Spelling Error Tests
|
|
24
|
+
|
|
25
|
+
These should be corrected via fuzzy matching:
|
|
26
|
+
- :smil: should become :smile:
|
|
27
|
+
- :rockt: should become :rocket:
|
|
28
|
+
- :hart: should become :heart:
|
|
29
|
+
- :fir: should become :fire:
|
|
30
|
+
- :thum: should become :thumbsup: (shortest match)
|
|
31
|
+
- :starr: should become :star:
|
|
32
|
+
- :smily: should become :smiley:
|
|
33
|
+
- :rocket-ship: should become :rocket: (hyphen removed, closest match)
|
|
34
|
+
|
|
35
|
+
## Combined Errors
|
|
36
|
+
|
|
37
|
+
These have multiple issues that should all be corrected:
|
|
38
|
+
- :Smile-Face: should become :smile: (uppercase + hyphen fixed, closest match)
|
|
39
|
+
- :ROCKET-SHIP: should become :rocket: (uppercase + hyphen fixed)
|
|
40
|
+
- :Heart-Eyes: should become :heart_eyes: (uppercase + hyphen fixed)
|
|
41
|
+
- :Thumbs-Up: should become :thumbsup: (uppercase + hyphen fixed)
|
|
42
|
+
- :Fire-Engine: should become :fire_engine: (uppercase + hyphen fixed)
|
|
43
|
+
|
|
44
|
+
## Edge Cases
|
|
45
|
+
|
|
46
|
+
- :smile: (already correct, should remain unchanged)
|
|
47
|
+
- :smile::rocket: (multiple emojis)
|
|
48
|
+
- :smile: and :rocket: in a sentence.
|
|
49
|
+
- :smile: :rocket: :heart: (multiple with spaces)
|
|
50
|
+
|
|
51
|
+
## Common Typos
|
|
52
|
+
|
|
53
|
+
- :smileing: should become :smile: (typo correction)
|
|
54
|
+
- :rockets: should become :rocket: (plural to singular)
|
|
55
|
+
- :hearts: should become :hearts: (already correct, but different from :heart:)
|
|
56
|
+
- :fired: should become :fire: (past tense to base)
|
|
57
|
+
- :smiling: should become :smile: (closest match)
|
|
58
|
+
|
|
59
|
+
## Image-Based Emojis
|
|
60
|
+
|
|
61
|
+
These are image-based emojis that should also work with autocorrect:
|
|
62
|
+
- :bowtie: (image emoji)
|
|
63
|
+
- :octocat: (image emoji)
|
|
64
|
+
- :feelsgood: (image emoji)
|
|
65
|
+
- :Bowtie: should become :bowtie:
|
|
66
|
+
- :OctoCat: should become :octocat:
|
|
67
|
+
- :feels-good: should become :feelsgood:
|
|
68
|
+
|
|
69
|
+
## No Match Cases
|
|
70
|
+
|
|
71
|
+
These should remain unchanged (no close match found):
|
|
72
|
+
- :xyzabc123: (too far from any emoji)
|
|
73
|
+
- :nonexistent: (not close enough)
|
|
74
|
+
- :zzzzzz: (too different)
|
|
75
|
+
|
|
76
|
+
## In Headers
|
|
77
|
+
|
|
78
|
+
# Header with :smile: emoji
|
|
79
|
+
|
|
80
|
+
## Another header with :ROCKET: emoji
|
|
81
|
+
|
|
82
|
+
### Header with :heart-eyes: emoji
|
|
83
|
+
|
|
84
|
+
## In Lists
|
|
85
|
+
|
|
86
|
+
- Item with :smile: emoji
|
|
87
|
+
- Item with :rocket: emoji
|
|
88
|
+
- Item with :heart: emoji
|
|
89
|
+
|
|
90
|
+
## In Paragraphs
|
|
91
|
+
|
|
92
|
+
This is a paragraph with :smile: emoji and :rocket: emoji. It also has :heart: emoji.
|
|
93
|
+
|
|
94
|
+
Another paragraph with :Smile-Face: that should be corrected to :smile:.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Bracketed Spans Test
|
|
2
|
+
|
|
3
|
+
This test verifies that bracketed spans `[text]{IAL}` work
|
|
4
|
+
correctly and that reference links take precedence.
|
|
5
|
+
|
|
6
|
+
## Reference Links (Should NOT be spans)
|
|
7
|
+
|
|
8
|
+
This is a [link] that works as a reference.
|
|
9
|
+
|
|
10
|
+
[link]: https://example.com
|
|
11
|
+
|
|
12
|
+
This is [another reference][ref2] with a different ID.
|
|
13
|
+
|
|
14
|
+
[ref2]: https://example.org "Example Site"
|
|
15
|
+
|
|
16
|
+
This is a [shortcut reference][] that uses the text as the
|
|
17
|
+
ID.
|
|
18
|
+
|
|
19
|
+
[shortcut reference]: https://example.net
|
|
20
|
+
|
|
21
|
+
## Bracketed Spans (Should be spans)
|
|
22
|
+
|
|
23
|
+
This is [some *text*]{.class key="val"} with a span.
|
|
24
|
+
|
|
25
|
+
This is [another span]{#id .class1 .class2 title="Title"}
|
|
26
|
+
with multiple attributes.
|
|
27
|
+
|
|
28
|
+
This is [a span with **bold** text]{.highlight} that should
|
|
29
|
+
process markdown.
|
|
30
|
+
|
|
31
|
+
This is [a span with `code`]{.code-style} inside.
|
|
32
|
+
|
|
33
|
+
This is [a span with [nested brackets]]{.nested} that should
|
|
34
|
+
work.
|
|
35
|
+
|
|
36
|
+
## Nested Brackets
|
|
37
|
+
|
|
38
|
+
This is [Text with [nested brackets]]{.nested} that should
|
|
39
|
+
preserve the nested brackets.
|
|
40
|
+
|
|
41
|
+
This is [Text with [multiple [levels] of
|
|
42
|
+
nesting]]{.multi-level} that should work.
|
|
43
|
+
|
|
44
|
+
This is [Text with [inner] and [more inner]
|
|
45
|
+
brackets]{.multiple-nested} that should work.
|
|
46
|
+
|
|
47
|
+
This is [Simple text]{.simple} without nesting.
|
|
48
|
+
|
|
49
|
+
## Edge Cases
|
|
50
|
+
|
|
51
|
+
This is [text]{.class} followed by regular text.
|
|
52
|
+
|
|
53
|
+
This is [text with *markdown*]{.class} that should be
|
|
54
|
+
processed.
|
|
55
|
+
|
|
56
|
+
This is [text]{#id} with just an ID.
|
|
57
|
+
|
|
58
|
+
This is [text]{.class1 .class2} with multiple classes.
|
|
59
|
+
|
|
60
|
+
This is [text]{key="value" key2='value2'} with multiple
|
|
61
|
+
attributes.
|
|
62
|
+
|
|
63
|
+
## Mixed Content
|
|
64
|
+
|
|
65
|
+
This paragraph has both a [reference link][ref3] and a
|
|
66
|
+
[bracketed span]{.span-class}.
|
|
67
|
+
|
|
68
|
+
[ref3]: https://example.com
|
|
69
|
+
|
|
70
|
+
This paragraph has [a reference][ref4] and [another
|
|
71
|
+
reference][ref4] using the same definition.
|
|
72
|
+
|
|
73
|
+
[ref4]: https://example.com
|
|
74
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
![ref with spaces][img1]
|
|
4
|
+
|
|
5
|
+
[img1]: path/to/image 1.png
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
![ref with attributes][img2]
|
|
10
|
+
|
|
11
|
+
[img2]: path/to/image2.png width=300
|
|
12
|
+
style="float:left;margin:10px"
|
|
13
|
+
|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
![ref with spaces and attributes][img3]
|
|
17
|
+
|
|
18
|
+
[img3]: path/to/image 3.png width=300
|
|
19
|
+
style="float:left;margin:10px"
|
|
20
|
+
|
|
21
|
+
[link with parens](https://wikipedia.com/Testing(Disambiguation))
|
|
22
|
+
|
|
23
|
+
[link with spaces and title](https://brettterpstra.com/i love markdown "Loving you")
|
|
24
|
+
|
|
25
|
+
[link with parens title](https://brettterpstra.com/i love markdown (Loving you))
|
|
26
|
+
|
|
27
|
+
[link with parens and parens in title](https://brettterpstra.com/i love markdown(for real) (Loving you))
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
## MultiMarkdown image attributes - inline
|
|
2
|
+
|
|
3
|
+
Expected: `<img src="/images/test-inline-1.jpg" alt="Inline no title" width="200">`
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
Expected: `<img src="/images/test-inline-2.jpg" alt="Inline with title" title="Falafel" width="300">`
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
Expected: `<img src="/images/test-inline-3.jpg" alt="Inline percent" style="width: 50%">`
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
Expected: `<img src="/images/test-inline-4.jpg" alt="Inline classes" class="center shadow" width="250" style="height: 60%">`
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
## MultiMarkdown image attributes - reference style
|
|
20
|
+
|
|
21
|
+
Expected: `<img src="/images/test-ref-1.jpg" alt="Ref with attrs" width="200">`
|
|
22
|
+
|
|
23
|
+
![Ref with attrs][ref-inline-1]
|
|
24
|
+
|
|
25
|
+
[ref-inline-1]: /images/test-ref-1.jpg width=200
|
|
26
|
+
|
|
27
|
+
Expected: `<img src="/images/test-ref-2.jpg" alt="Ref with title" title="Falafel" width="300">`
|
|
28
|
+
|
|
29
|
+
![Ref with title][ref-inline-2]
|
|
30
|
+
|
|
31
|
+
[ref-inline-2]: /images/test-ref-2.jpg "Falafel" width=300
|
|
32
|
+
|
|
33
|
+
Expected: `<img src="/images/test-ref-3.jpg" alt="Ref percent" style="width: 50%">`
|
|
34
|
+
|
|
35
|
+
![Ref percent][ref-inline-3]
|
|
36
|
+
|
|
37
|
+
[ref-inline-3]: /images/test-ref-3.jpg width=50%
|
|
38
|
+
|
|
39
|
+
Expected: `<img src="/images/test-ref-4.jpg" alt="Ref classes" class="center shadow" width="250" style="height: 60%">`
|
|
40
|
+
|
|
41
|
+
![Ref classes][ref-inline-4]
|
|
42
|
+
|
|
43
|
+
[ref-inline-4]: /images/test-ref-4.jpg "Caption" class=center shadow width=250 height=60%
|
|
44
|
+
|
|
45
|
+
## @2x (retina srcset)
|
|
46
|
+
|
|
47
|
+
Expected: `srcset="img/icon.png 1x, img/icon@2x.png 2x"` (and src="img/icon.png")
|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
Expected: @2x with title - srcset present
|
|
52
|
+
|
|
53
|
+

|
|
54
|
+
|
|
55
|
+
Expected: reference-style @2x - srcset present
|
|
56
|
+
|
|
57
|
+
![Logo][logo-2x]
|
|
58
|
+
|
|
59
|
+
[logo-2x]: img/hero.png @2x
|
|
60
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Pandoc/Kramdown IAL Image Compatibility Test
|
|
2
|
+
|
|
3
|
+
## Test 1: Reference definition with IAL after title
|
|
4
|
+
[ref]: foo.jpg "optional title" {#id .class key=val
|
|
5
|
+
key2="val 2"}
|
|
6
|
+
|
|
7
|
+
## Test 2: Inline image with IAL
|
|
8
|
+
An inline {#id .class width=30 height=20px}
|
|
9
|
+
|
|
10
|
+
## Test 3: Reference image with attributes
|
|
11
|
+
![image][ref]
|
|
12
|
+
|
|
13
|
+
## Test 4: Pandoc-style width with percentage
|
|
14
|
+
{ width=50% }
|
|
15
|
+
|
|
16
|
+
## Test 5: Width and height with units
|
|
17
|
+
{ width=300px height=200px }
|
|
18
|
+
|
|
19
|
+
## Test 6: Mixed IAL and attributes
|
|
20
|
+
{#myid .myclass width=50% height=100px}
|
|
21
|
+
|
|
22
|
+
## Test 7: Reference with title and IAL
|
|
23
|
+
[imgref]: image.png "Image Title" {#refimg .imageclass
|
|
24
|
+
width=75%}
|
|
25
|
+
|
|
26
|
+
![ref image][imgref]
|
|
27
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Width/Height Conversion Test
|
|
2
|
+
|
|
3
|
+
This test verifies that width and height attributes are
|
|
4
|
+
correctly converted:
|
|
5
|
+
|
|
6
|
+
- Percentages → `style` attribute
|
|
7
|
+
- `Xpx` → integer `width`/`height` attribute (strips `px`)
|
|
8
|
+
- Bare integers → `width`/`height` attribute
|
|
9
|
+
- Other units (em, rem, etc.) → `style` attribute
|
|
10
|
+
|
|
11
|
+
## Test 1: Percentage width
|
|
12
|
+
Expected: `style="width: 50%"`
|
|
13
|
+
{ width=50% }
|
|
14
|
+
|
|
15
|
+
## Test 2: Pixel width
|
|
16
|
+
Expected: `width="300"`
|
|
17
|
+
{ width=300px }
|
|
18
|
+
|
|
19
|
+
## Test 3: Bare integer width
|
|
20
|
+
Expected: `width="300"`
|
|
21
|
+
{ width=300}
|
|
22
|
+
|
|
23
|
+
## Test 4: Percentage height
|
|
24
|
+
Expected: `style="height: 75%"`
|
|
25
|
+
{ height=75% }
|
|
26
|
+
|
|
27
|
+
## Test 5: Pixel height
|
|
28
|
+
Expected: `height="200"`
|
|
29
|
+
{ height=200px }
|
|
30
|
+
|
|
31
|
+
## Test 6: Both width and height with percentages
|
|
32
|
+
Expected: `style="width: 50%; height: 75%"`
|
|
33
|
+
{ width=50% height=75% }
|
|
34
|
+
|
|
35
|
+
## Test 7: Mixed - pixel width, percentage height
|
|
36
|
+
Expected: `width="300" style="height: 50%"`
|
|
37
|
+
{ width=300px height=50% }
|
|
38
|
+
|
|
39
|
+
## Test 8: Mixed - percentage width, pixel height
|
|
40
|
+
Expected: `height="200" style="width: 50%"`
|
|
41
|
+
{ width=50% height=200px }
|
|
42
|
+
|
|
43
|
+
## Test 9: Bare integers for both
|
|
44
|
+
Expected: `width="300" height="200"`
|
|
45
|
+
{ width=300 height=200 }
|
|
46
|
+
|
|
47
|
+
## Test 10: Other units (should go to style)
|
|
48
|
+
Expected: `style="width: 5em; height: 10rem"`
|
|
49
|
+
{ width=5em height=10rem }
|
|
50
|
+
|
|
51
|
+
## Test 11: Inline image with percentage width
|
|
52
|
+
Expected: `style="width: 75%"`
|
|
53
|
+
{ width=75% }
|
|
54
|
+
|
|
55
|
+
## Test 12: Inline image with pixel width
|
|
56
|
+
Expected: `width="400"`
|
|
57
|
+
{ width=400px }
|
|
58
|
+
|
|
59
|
+
## Test 13: Reference image with percentage
|
|
60
|
+
Expected: `style="width: 60%"`
|
|
61
|
+
![ref image][img1]
|
|
62
|
+
|
|
63
|
+
[img1]: img.jpg "Title" { width=60% }
|
|
64
|
+
|
|
65
|
+
## Test 14: Reference image with pixel dimensions
|
|
66
|
+
Expected: `width="500" height="300"`
|
|
67
|
+
![ref image][img2]
|
|
68
|
+
|
|
69
|
+
[img2]: img.jpg { width=500px height=300px }
|
|
70
|
+
|
|
71
|
+
## Test 15: Mixed with other attributes
|
|
72
|
+
Expected: `id="test" class="image" width="250" style="height: 80%"`
|
|
73
|
+
{#test .image width=250px height=80% }
|
|
74
|
+
|
|
75
|
+
## Test 16: Zero pixel value
|
|
76
|
+
Expected: `width="0"`
|
|
77
|
+
{ width=0px }
|
|
78
|
+
|
|
79
|
+
## Test 17: Decimal pixel value (should go to style)
|
|
80
|
+
Expected: `style="width: 100.5px"`
|
|
81
|
+
{ width=100.5px }
|
|
82
|
+
|
|
83
|
+
## Test 18: Viewport units (should go to style)
|
|
84
|
+
Expected: `style="width: 50vw; height: 30vh"`
|
|
85
|
+
{ width=50vw height=30vh }
|
|
86
|
+
|
|
87
|
+
## Test 19: Percentage with decimal
|
|
88
|
+
Expected: `style="width: 33.33%"`
|
|
89
|
+
{ width=33.33% }
|
|
90
|
+
|
|
91
|
+
## Test 20: Multiple style values (width percentage, existing style)
|
|
92
|
+
Expected: `style="float: left; width: 50%"`
|
|
93
|
+
{ style="float: left" width=50% }
|
|
94
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
::: >section hero
|
|
2
|
+
{: .hero-logo}
|
|
3
|
+
|
|
4
|
+
# BlogBook
|
|
5
|
+
|
|
6
|
+
Export your WordPress, Micro.blog, or Ghost blog to a single Markdown file. Filter by categories, authors, tags, and dates—then open in Marked 3 for PDF, EPUB, and more.
|
|
7
|
+
{: .lead}
|
|
8
|
+
|
|
9
|
+
[![Download on the Mac App Store][mas-button]](#){: .hero-app-store title="Download on the Mac App Store"}
|
|
10
|
+
|
|
11
|
+
[mas-button]: https://tools.applemediaservices.com/api/badges/download-on-the-app-store/black/en-us?size=250x83&releaseDate=1704067200 width=250 height=83 style="margin: 0 auto;"
|
|
12
|
+
|
|
13
|
+
:::: >figure hero-export
|
|
14
|
+

|
|
15
|
+
::::
|
|
16
|
+
:::
|
|
Binary file
|