apex-ruby 1.0.29 → 1.0.31
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 +4 -4
- data/README.md +2 -8
- data/apex-ruby.gemspec +14 -3
- data/ext/apex_ext/apex_src/include/apex/apex.h +11 -2
- data/ext/apex_ext/apex_src/src/apex.c +64 -5
- data/ext/apex_ext/apex_src/src/ast_terminal.c +2 -4
- data/ext/apex_ext/apex_src/src/extensions/callouts.c +103 -63
- data/ext/apex_ext/apex_src/src/extensions/callouts.h +3 -2
- data/ext/apex_ext/apex_src/src/extensions/citations.c +15 -2
- data/ext/apex_ext/apex_src/src/extensions/emoji.c +73 -7
- data/ext/apex_ext/apex_src/src/extensions/html_markdown.c +25 -4
- data/ext/apex_ext/apex_src/src/extensions/html_markdown.h +4 -1
- data/ext/apex_ext/apex_src/src/extensions/insert.c +49 -0
- data/ext/apex_ext/apex_src/src/extensions/metadata.c +275 -55
- data/ext/apex_ext/apex_src/src/extensions/metadata.h +9 -0
- data/ext/apex_ext/apex_src/src/extensions/relaxed_tables.c +172 -254
- data/ext/apex_ext/apex_src/src/extensions/table_html_postprocess.c +36 -127
- data/ext/apex_ext/apex_src/src/html_renderer.c +99 -157
- data/ext/apex_ext/extconf.rb +31 -79
- data/lib/apex/version.rb +1 -1
- metadata +1 -470
- data/ext/apex_ext/apex_src/AGENTS.md +0 -41
- data/ext/apex_ext/apex_src/BENCHMARK.md +0 -32
- data/ext/apex_ext/apex_src/BENCHMARK_COMPARISON.md +0 -67
- data/ext/apex_ext/apex_src/CHANGELOG.md +0 -3373
- data/ext/apex_ext/apex_src/CMakeLists.txt +0 -481
- data/ext/apex_ext/apex_src/Dockerfile.linux-build +0 -15
- data/ext/apex_ext/apex_src/Formula/apex.rb +0 -43
- data/ext/apex_ext/apex_src/Info.plist.in +0 -27
- data/ext/apex_ext/apex_src/Package.swift +0 -192
- data/ext/apex_ext/apex_src/PackageSupport/README.md +0 -17
- data/ext/apex_ext/apex_src/PackageSupport/cmark-gfm/cmark_gfm_spm_stub.c +0 -4
- data/ext/apex_ext/apex_src/README.md +0 -536
- data/ext/apex_ext/apex_src/ROADMAP.md +0 -5
- data/ext/apex_ext/apex_src/VERSION +0 -1
- data/ext/apex_ext/apex_src/apex-debug.log +0 -4
- data/ext/apex_ext/apex_src/apex-header-2-rb@2x.webp +0 -0
- data/ext/apex_ext/apex_src/apex-plugins.json.example +0 -20
- data/ext/apex_ext/apex_src/apex.code-workspace +0 -38
- data/ext/apex_ext/apex_src/apex.pc.in +0 -11
- data/ext/apex_ext/apex_src/apex.taskpaper +0 -12
- data/ext/apex_ext/apex_src/apex_deflist_debug.log +0 -25
- data/ext/apex_ext/apex_src/buildnotes.md +0 -1435
- data/ext/apex_ext/apex_src/cli/main.c +0 -4588
- data/ext/apex_ext/apex_src/debug.log +0 -7
- data/ext/apex_ext/apex_src/debug_test.sh +0 -22
- data/ext/apex_ext/apex_src/docs/API_REFERENCE.md +0 -451
- data/ext/apex_ext/apex_src/docs/ARCHITECTURE.md +0 -166
- data/ext/apex_ext/apex_src/docs/CITATIONS_EXAMPLES.md +0 -274
- data/ext/apex_ext/apex_src/docs/CITATIONS_IMPLEMENTATION_PLAN.md +0 -749
- data/ext/apex_ext/apex_src/docs/CITATIONS_PLAN.md +0 -744
- data/ext/apex_ext/apex_src/docs/CMARK_INTEGRATION.md +0 -220
- data/ext/apex_ext/apex_src/docs/CRITICMARKUP.md +0 -501
- data/ext/apex_ext/apex_src/docs/DEBUGGING.md +0 -73
- data/ext/apex_ext/apex_src/docs/FINAL_STATUS.md +0 -391
- data/ext/apex_ext/apex_src/docs/FINAL_STATUS_UPDATE.md +0 -237
- data/ext/apex_ext/apex_src/docs/IAL_FEATURES.md +0 -210
- data/ext/apex_ext/apex_src/docs/IAL_STATUS.md +0 -344
- data/ext/apex_ext/apex_src/docs/INDEX_IMPLEMENTATION_ANALYSIS.md +0 -382
- data/ext/apex_ext/apex_src/docs/INTEGRATION_EXAMPLE.m +0 -144
- data/ext/apex_ext/apex_src/docs/LIMITATIONS_RESOLVED.md +0 -278
- data/ext/apex_ext/apex_src/docs/OUTPUT_MODES.md +0 -321
- data/ext/apex_ext/apex_src/docs/PROGRESS.md +0 -167
- data/ext/apex_ext/apex_src/docs/STANDALONE_FEATURE.md +0 -174
- data/ext/apex_ext/apex_src/docs/TABLE_SPANS_STATUS.md +0 -243
- data/ext/apex_ext/apex_src/docs/TEST_COVERAGE.md +0 -316
- data/ext/apex_ext/apex_src/docs/USER_GUIDE.md +0 -803
- data/ext/apex_ext/apex_src/docs/WIKI_LINKS_ISSUE.md +0 -91
- data/ext/apex_ext/apex_src/docs/index.md +0 -459
- data/ext/apex_ext/apex_src/docs/plans/2025-02-27-man-page-output-implementation.md +0 -351
- data/ext/apex_ext/apex_src/docs/superpowers/plans/2026-07-12-toc-output-format.md +0 -745
- data/ext/apex_ext/apex_src/docs/superpowers/plans/2026-07-18-bear-image-attributes.md +0 -829
- data/ext/apex_ext/apex_src/docs/superpowers/plans/2026-07-19-apex-node-npm.md +0 -1148
- data/ext/apex_ext/apex_src/docs/superpowers/specs/2026-07-12-toc-output-format-design.md +0 -161
- data/ext/apex_ext/apex_src/docs/superpowers/specs/2026-07-18-bear-image-attributes-design.md +0 -184
- data/ext/apex_ext/apex_src/docs/superpowers/specs/2026-07-19-apex-node-npm-design.md +0 -211
- data/ext/apex_ext/apex_src/documentation/README.md +0 -160
- data/ext/apex_ext/apex_src/documentation/app-settings-table.md +0 -67
- data/ext/apex_ext/apex_src/documentation/app-transformed/Citations.md +0 -340
- data/ext/apex_ext/apex_src/documentation/app-transformed/Credits.md +0 -11
- data/ext/apex_ext/apex_src/documentation/app-transformed/Header-IDs.md +0 -234
- data/ext/apex_ext/apex_src/documentation/app-transformed/Inline-Attribute-Lists.md +0 -516
- data/ext/apex_ext/apex_src/documentation/app-transformed/Metadata-Transforms.md +0 -461
- data/ext/apex_ext/apex_src/documentation/app-transformed/Modes.md +0 -193
- data/ext/apex_ext/apex_src/documentation/app-transformed/Multi-File-Documents.md +0 -201
- data/ext/apex_ext/apex_src/documentation/app-transformed/Plugins.md +0 -678
- data/ext/apex_ext/apex_src/documentation/app-transformed/Syntax.md +0 -1367
- data/ext/apex_ext/apex_src/documentation/docsets/Apex Command Line Options.cheatsheet.txt +0 -371
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Info.plist +0 -24
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/C-API.html +0 -2211
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Callouts.html +0 -1194
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Citations.html +0 -1620
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Command-Line-Options.html +0 -6024
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Configuration.html +0 -1877
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Credits.html +0 -1040
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Examples.html +0 -1402
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Filters.html +0 -1656
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Generating-Man-Pages.html +0 -1226
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Getting-Started.html +0 -1148
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Header-IDs.html +0 -1478
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Home.html +0 -1225
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Indices.html +0 -2327
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Inline-Attribute-Lists.html +0 -2041
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Installation.html +0 -1314
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Limitations-and-Roadmap.html +0 -1868
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Metadata-Transforms.html +0 -1731
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Modes.html +0 -2242
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Multi-File-Documents.html +0 -1533
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Multi-Format-Images.html +0 -1362
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Pandoc-Integration.html +0 -1338
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Plugins.html +0 -3188
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Quarto-Mode.html +0 -1405
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Rendering-Markdown-In-Terminal.html +0 -1902
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Syntax.html +0 -4222
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Tables.html +0 -1781
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Troubleshooting.html +0 -1629
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Usage.html +0 -1394
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Using-Apex-with-Jekyll.html +0 -1132
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Writing-Tests.html +0 -1754
- data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Xcode-Integration.html +0 -2562
- 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/ApexCLI.docset/Contents/Info.plist +0 -22
- 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 +0 -914
- data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/style.css +0 -399
- 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 +0 -772
- data/ext/apex_ext/apex_src/documentation/generate_app_docs_ai.rb +0 -678
- data/ext/apex_ext/apex_src/documentation/generate_docset.rb +0 -873
- data/ext/apex_ext/apex_src/documentation/generate_single_html.rb +0 -733
- data/ext/apex_ext/apex_src/documentation/html/apex-app-docs.html +0 -8746
- data/ext/apex_ext/apex_src/documentation/html/apex-docs.html +0 -17073
- data/ext/apex_ext/apex_src/documentation/shared_scripts.js +0 -64
- data/ext/apex_ext/apex_src/documentation/shared_styles.css +0 -651
- data/ext/apex_ext/apex_src/documentation/transform_for_app.example.md +0 -260
- data/ext/apex_ext/apex_src/documentation/transform_for_app.md +0 -55
- data/ext/apex_ext/apex_src/escaping-repro.md +0 -103
- data/ext/apex_ext/apex_src/examples/bracketed_spans_demo.md +0 -119
- data/ext/apex_ext/apex_src/examples/emoji_span_plugin.yml +0 -11
- data/ext/apex_ext/apex_src/examples/example.html +0 -53
- data/ext/apex_ext/apex_src/examples/example.md +0 -85
- data/ext/apex_ext/apex_src/examples/fenced_divs_demo.md +0 -158
- data/ext/apex_ext/apex_src/examples/kbd.md +0 -8
- data/ext/apex_ext/apex_src/examples/kbd_plugin.rb +0 -250
- data/ext/apex_ext/apex_src/examples/kbd_plugin.yml +0 -9
- data/ext/apex_ext/apex_src/examples/quick-actions/Markdown to RTF.workflow/Contents/Info.plist +0 -8
- data/ext/apex_ext/apex_src/examples/quick-actions/Markdown to RTF.workflow/Contents/QuickLook/Preview.png +0 -0
- data/ext/apex_ext/apex_src/examples/quick-actions/Markdown to RTF.workflow/Contents/document.wflow +0 -547
- data/ext/apex_ext/apex_src/examples/quick-actions/Markdown-to-RTF.workflow.zip +0 -0
- data/ext/apex_ext/apex_src/examples/quick-actions/README.md +0 -33
- data/ext/apex_ext/apex_src/ial.html +0 -24
- 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/man/apex-config.5 +0 -455
- data/ext/apex_ext/apex_src/man/apex-config.5.md +0 -262
- data/ext/apex_ext/apex_src/man/apex-plugins.7 +0 -541
- data/ext/apex_ext/apex_src/man/apex-plugins.7.md +0 -365
- data/ext/apex_ext/apex_src/man/apex.1 +0 -583
- data/ext/apex_ext/apex_src/man/apex.1.html +0 -703
- data/ext/apex_ext/apex_src/man/apex.1.md +0 -803
- data/ext/apex_ext/apex_src/man/apex.1.new +0 -338
- data/ext/apex_ext/apex_src/objc/Apex.swift +0 -316
- data/ext/apex_ext/apex_src/objc/ApexPlugins.swift +0 -79
- data/ext/apex_ext/apex_src/objc/NSString+Apex.h +0 -207
- data/ext/apex_ext/apex_src/objc/NSString+Apex.m +0 -584
- data/ext/apex_ext/apex_src/objc/NSString+ApexPlugins.h +0 -76
- data/ext/apex_ext/apex_src/objc/NSString+ApexPlugins.m +0 -169
- data/ext/apex_ext/apex_src/output.html +0 -87
- data/ext/apex_ext/apex_src/pages/index.md +0 -459
- data/ext/apex_ext/apex_src/plans/quarto-mode.md +0 -442
- data/ext/apex_ext/apex_src/src/_README.md +0 -413
- data/ext/apex_ext/apex_src/src/extensions/github-emoji.txt +0 -869
- data/ext/apex_ext/apex_src/test-linux-build.sh +0 -20
- data/ext/apex_ext/apex_src/test.html +0 -103
- data/ext/apex_ext/apex_src/test_coverage.sh +0 -121
- data/ext/apex_ext/apex_src/test_ial_fenced.md +0 -6
- data/ext/apex_ext/apex_src/test_math_norm.py +0 -79
- data/ext/apex_ext/apex_src/test_pandoc_output.html +0 -48
- data/ext/apex_ext/apex_src/test_spm.sh +0 -107
- data/ext/apex_ext/apex_src/tests/ApexSPMTest/main.swift +0 -50
- data/ext/apex_ext/apex_src/tests/BENCHMARK_RESULTS.md +0 -229
- data/ext/apex_ext/apex_src/tests/CMakeLists.txt +0 -25
- data/ext/apex_ext/apex_src/tests/README.md +0 -152
- data/ext/apex_ext/apex_src/tests/benchmark.sh +0 -113
- data/ext/apex_ext/apex_src/tests/benchmark_comparison.sh +0 -166
- data/ext/apex_ext/apex_src/tests/compare_header_ids.sh +0 -31
- data/ext/apex_ext/apex_src/tests/fixtures/basic/headers.md +0 -25
- data/ext/apex_ext/apex_src/tests/fixtures/basic/list-interruption.md +0 -24
- data/ext/apex_ext/apex_src/tests/fixtures/basic/misc_markup.md +0 -33
- data/ext/apex_ext/apex_src/tests/fixtures/basic/test_basic.md +0 -26
- data/ext/apex_ext/apex_src/tests/fixtures/code/code-blocks.md +0 -260
- data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/SUMMARY.md +0 -6
- data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/chapter1.md +0 -7
- data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/index.txt +0 -9
- data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/intro.md +0 -5
- data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/section1_1.md +0 -5
- data/ext/apex_ext/apex_src/tests/fixtures/comprehensive_test.md +0 -652
- data/ext/apex_ext/apex_src/tests/fixtures/debug_ref_image_ial.md +0 -3
- data/ext/apex_ext/apex_src/tests/fixtures/demos/ial.md +0 -11
- data/ext/apex_ext/apex_src/tests/fixtures/demos/ial_demo.md +0 -177
- data/ext/apex_ext/apex_src/tests/fixtures/extensions/emoji-autocorrect.md +0 -94
- data/ext/apex_ext/apex_src/tests/fixtures/extensions/emoji_test.md +0 -3
- data/ext/apex_ext/apex_src/tests/fixtures/extensions/kbd_test.md +0 -3
- data/ext/apex_ext/apex_src/tests/fixtures/filters/filter_output_with_rawblock.json +0 -1
- data/ext/apex_ext/apex_src/tests/fixtures/filters/unwrap.md +0 -7
- data/ext/apex_ext/apex_src/tests/fixtures/ial/bracketed_spans_test.md +0 -74
- data/ext/apex_ext/apex_src/tests/fixtures/images/auto-wildcard.md +0 -8
- data/ext/apex_ext/apex_src/tests/fixtures/images/bear_image_attributes.md +0 -10
- data/ext/apex_ext/apex_src/tests/fixtures/images/image_and_encoding_test.md +0 -27
- data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu.avif +0 -0
- data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu.jpg +0 -0
- data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu.webp +0 -0
- data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu@2x.avif +0 -0
- data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu@2x.jpg +0 -0
- data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu@2x.webp +0 -0
- data/ext/apex_ext/apex_src/tests/fixtures/images/media_formats_test.md +0 -63
- data/ext/apex_ext/apex_src/tests/fixtures/images/multimarkdown_image_attributes_test.md +0 -60
- data/ext/apex_ext/apex_src/tests/fixtures/images/pandoc_ial_image_test.md +0 -27
- data/ext/apex_ext/apex_src/tests/fixtures/images/width_height_conversion_test.md +0 -94
- data/ext/apex_ext/apex_src/tests/fixtures/img-in-div.md +0 -16
- data/ext/apex_ext/apex_src/tests/fixtures/includes/code.py +0 -4
- data/ext/apex_ext/apex_src/tests/fixtures/includes/data-semi.csv +0 -3
- data/ext/apex_ext/apex_src/tests/fixtures/includes/data.csv +0 -5
- data/ext/apex_ext/apex_src/tests/fixtures/includes/data.tsv +0 -5
- data/ext/apex_ext/apex_src/tests/fixtures/includes/image.png +0 -2
- data/ext/apex_ext/apex_src/tests/fixtures/includes/metadata_options.yml +0 -11
- data/ext/apex_ext/apex_src/tests/fixtures/includes/nested.md +0 -8
- data/ext/apex_ext/apex_src/tests/fixtures/includes/raw.html +0 -4
- data/ext/apex_ext/apex_src/tests/fixtures/includes/sections.md +0 -19
- data/ext/apex_ext/apex_src/tests/fixtures/includes/sections.txt +0 -11
- data/ext/apex_ext/apex_src/tests/fixtures/includes/simple.md +0 -7
- data/ext/apex_ext/apex_src/tests/fixtures/includes/test_image.png +0 -0
- data/ext/apex_ext/apex_src/tests/fixtures/includes/with space.txt +0 -1
- data/ext/apex_ext/apex_src/tests/fixtures/large_doc.md +0 -1094
- data/ext/apex_ext/apex_src/tests/fixtures/metadata/mmd-metadata.md +0 -5
- data/ext/apex_ext/apex_src/tests/fixtures/metadata/pandoc-meta.md +0 -4
- data/ext/apex_ext/apex_src/tests/fixtures/metadata/yaml-frontmatter.md +0 -6
- data/ext/apex_ext/apex_src/tests/fixtures/metadata_options.yml +0 -11
- data/ext/apex_ext/apex_src/tests/fixtures/minimal_pb.md +0 -2
- data/ext/apex_ext/apex_src/tests/fixtures/obsidian-callouts.md +0 -46
- data/ext/apex_ext/apex_src/tests/fixtures/output/gfm_header_id_test.md +0 -96
- data/ext/apex_ext/apex_src/tests/fixtures/output/test_citations.md +0 -43
- data/ext/apex_ext/apex_src/tests/fixtures/output/test_def_list_links.md +0 -12
- data/ext/apex_ext/apex_src/tests/fixtures/output/test_index_mmark.md +0 -53
- data/ext/apex_ext/apex_src/tests/fixtures/output/test_index_textindex.md +0 -37
- data/ext/apex_ext/apex_src/tests/fixtures/pagebreak_html_repro.md +0 -5
- data/ext/apex_ext/apex_src/tests/fixtures/python-callouts.md +0 -47
- data/ext/apex_ext/apex_src/tests/fixtures/quarto/callouts.md +0 -3
- data/ext/apex_ext/apex_src/tests/fixtures/quarto/code-attrs.md +0 -3
- data/ext/apex_ext/apex_src/tests/fixtures/quarto/diagrams.md +0 -8
- data/ext/apex_ext/apex_src/tests/fixtures/quarto/lists.md +0 -19
- data/ext/apex_ext/apex_src/tests/fixtures/quarto/raw-content.md +0 -5
- data/ext/apex_ext/apex_src/tests/fixtures/quarto/shortcodes.md +0 -7
- data/ext/apex_ext/apex_src/tests/fixtures/quarto/smoke.md +0 -81
- data/ext/apex_ext/apex_src/tests/fixtures/quarto/spans.md +0 -5
- data/ext/apex_ext/apex_src/tests/fixtures/quarto-callouts.md +0 -47
- data/ext/apex_ext/apex_src/tests/fixtures/speed.md +0 -192
- data/ext/apex_ext/apex_src/tests/fixtures/tables/advanced_tables_test.md +0 -93
- data/ext/apex_ext/apex_src/tests/fixtures/tables/grid-tables.md +0 -37
- data/ext/apex_ext/apex_src/tests/fixtures/tables/inline_tables_test.md +0 -41
- data/ext/apex_ext/apex_src/tests/fixtures/tables/relaxed-table.md +0 -12
- data/ext/apex_ext/apex_src/tests/fixtures/tables/table_cr_line_endings.md +0 -15
- data/ext/apex_ext/apex_src/tests/fixtures/tables/table_no_trailing_newline.md +0 -15
- data/ext/apex_ext/apex_src/tests/generate_gfm_ids.sh +0 -105
- data/ext/apex_ext/apex_src/tests/generate_ial_demo.sh +0 -143
- data/ext/apex_ext/apex_src/tests/gfm_id_comparison_summary.md +0 -96
- data/ext/apex_ext/apex_src/tests/gh_api_test.md +0 -6
- data/ext/apex_ext/apex_src/tests/ial_demo.html +0 -186
- data/ext/apex_ext/apex_src/tests/include_code.py +0 -19
- data/ext/apex_ext/apex_src/tests/include_snippet.md +0 -15
- data/ext/apex_ext/apex_src/tests/metadata_cli_test.sh +0 -119
- data/ext/apex_ext/apex_src/tests/multi_file_cli_test.sh +0 -64
- data/ext/apex_ext/apex_src/tests/paginate_cli_test.sh +0 -80
- data/ext/apex_ext/apex_src/tests/sample_data.csv +0 -7
- data/ext/apex_ext/apex_src/tests/table_escaped_ltlt.md +0 -4
- data/ext/apex_ext/apex_src/tests/terminal_width_test.sh +0 -29
- data/ext/apex_ext/apex_src/tests/test-swift-package.sh +0 -14
- data/ext/apex_ext/apex_src/tests/test_basic.c +0 -74
- data/ext/apex_ext/apex_src/tests/test_bear_image_attrs.c +0 -301
- data/ext/apex_ext/apex_src/tests/test_cmark_callback.c +0 -189
- data/ext/apex_ext/apex_src/tests/test_concordance.tsv +0 -4
- data/ext/apex_ext/apex_src/tests/test_custom_plugins.c +0 -78
- data/ext/apex_ext/apex_src/tests/test_escaping_repro.c +0 -82
- data/ext/apex_ext/apex_src/tests/test_extensions.c +0 -3337
- data/ext/apex_ext/apex_src/tests/test_helpers.c +0 -183
- data/ext/apex_ext/apex_src/tests/test_helpers.h +0 -91
- data/ext/apex_ext/apex_src/tests/test_ial.c +0 -289
- data/ext/apex_ext/apex_src/tests/test_links.c +0 -418
- data/ext/apex_ext/apex_src/tests/test_marked_integration.c +0 -290
- data/ext/apex_ext/apex_src/tests/test_metadata.c +0 -1147
- data/ext/apex_ext/apex_src/tests/test_output.c +0 -2056
- data/ext/apex_ext/apex_src/tests/test_plugins.c +0 -219
- data/ext/apex_ext/apex_src/tests/test_refs.bib +0 -31
- data/ext/apex_ext/apex_src/tests/test_runner.c +0 -268
- data/ext/apex_ext/apex_src/tests/test_syntax_highlight.c +0 -198
- data/ext/apex_ext/apex_src/tests/test_tables.c +0 -1298
- data/ext/apex_ext/apex_src/tests/update_benchmarks.sh +0 -9
- data/ext/apex_ext/apex_src/tests/yaml_test.md +0 -13
- data/ext/apex_ext/apex_src/tests.rb +0 -39
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/CMakeLists.txt +0 -48
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/CheckFileOffsetBits.c +0 -14
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/CheckFileOffsetBits.cmake +0 -43
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/FindAsan.cmake +0 -74
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/Makefile.nmake +0 -38
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/README.md +0 -206
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/CMakeLists.txt +0 -30
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/cplusplus.cpp +0 -15
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/cplusplus.h +0 -16
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/harness.c +0 -111
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/harness.h +0 -35
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/main.c +0 -1169
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/appveyor.yml +0 -21
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-bq-flat.md +0 -16
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-bq-nested.md +0 -13
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-code.md +0 -11
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-fences.md +0 -14
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-heading.md +0 -9
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-hr.md +0 -10
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-html.md +0 -32
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-lheading.md +0 -8
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-list-flat.md +0 -67
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-list-nested.md +0 -36
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-ref-flat.md +0 -15
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-ref-nested.md +0 -17
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-autolink.md +0 -14
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-backticks.md +0 -3
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-em-flat.md +0 -5
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-em-nested.md +0 -5
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-em-worst.md +0 -5
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-entity.md +0 -11
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-escape.md +0 -15
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-html.md +0 -44
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-links-flat.md +0 -23
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-links-nested.md +0 -13
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-newlines.md +0 -24
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/lorem1.md +0 -13
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/rawtabs.md +0 -18
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/statistics.py +0 -595
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/stats.py +0 -19
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/benchmarks.md +0 -33
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/changelog.txt +0 -1245
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/data/CaseFolding.txt +0 -1495
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/CMakeLists.txt +0 -119
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/ext_scanners.re +0 -92
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/CMakeLists.txt +0 -22
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/README.md +0 -12
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/fuzz_quadratic.c +0 -91
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/fuzz_quadratic_brackets.c +0 -110
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/fuzzloop.sh +0 -28
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/CMakeLists.txt +0 -10
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/make_man_page.py +0 -133
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/man1/cmark-gfm.1 +0 -78
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/man3/cmark-gfm.3 +0 -1041
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/nmake.bat +0 -1
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/CMakeLists.txt +0 -230
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/cmark-gfm_version.h.in +0 -7
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/config.h +0 -38
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/config.h.in +0 -76
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/libcmark-gfm.pc.in +0 -10
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/scanners.re +0 -365
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/suppressions +0 -10
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/CMakeLists.txt +0 -114
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/__pycache__/cmark.cpython-314.pyc +0 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/__pycache__/normalize.cpython-314.pyc +0 -0
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/afl_test_cases/test.md +0 -49
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/cmark-fuzz.c +0 -58
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/cmark.py +0 -105
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/entity_tests.py +0 -67
- 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 +0 -38
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/extensions.txt +0 -989
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/fuzzing_dictionary +0 -67
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/normalize.py +0 -194
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/pathological_tests.py +0 -160
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/regression.txt +0 -375
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/roundtrip_tests.py +0 -50
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/run-cmark-fuzz +0 -4
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/smart_punct.txt +0 -177
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/spec.txt +0 -10212
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/spec_tests.py +0 -152
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/toolchain-mingw32.cmake +0 -17
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/Dockerfile +0 -41
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/appveyor-build.bat +0 -13
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/make_entities_inc.py +0 -32
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/mkcasefold.pl +0 -22
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/xml2md.xsl +0 -319
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/xml2md_gfm.xsl +0 -80
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/why-cmark-and-not-x.md +0 -104
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.js +0 -6
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.py +0 -37
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.rb +0 -15
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.rkt +0 -208
- data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper_ext.py +0 -109
- data/ext/apex_ext/apex_src/vendor/libyaml/CMakeLists.txt +0 -160
- data/ext/apex_ext/apex_src/vendor/libyaml/Changes +0 -372
- data/ext/apex_ext/apex_src/vendor/libyaml/License +0 -20
- data/ext/apex_ext/apex_src/vendor/libyaml/Makefile.am +0 -51
- data/ext/apex_ext/apex_src/vendor/libyaml/ReadMe.md +0 -46
- data/ext/apex_ext/apex_src/vendor/libyaml/announcement.msg +0 -89
- data/ext/apex_ext/apex_src/vendor/libyaml/bootstrap +0 -3
- data/ext/apex_ext/apex_src/vendor/libyaml/cmake/config.h.in +0 -4
- data/ext/apex_ext/apex_src/vendor/libyaml/configure.ac +0 -73
- data/ext/apex_ext/apex_src/vendor/libyaml/doc/doxygen.cfg +0 -222
- data/ext/apex_ext/apex_src/vendor/libyaml/docker/README.mkd +0 -17
- data/ext/apex_ext/apex_src/vendor/libyaml/docker/alpine-3.7 +0 -26
- data/ext/apex_ext/apex_src/vendor/libyaml/docker/fedora-25 +0 -26
- data/ext/apex_ext/apex_src/vendor/libyaml/docker/ubuntu-14.04 +0 -29
- data/ext/apex_ext/apex_src/vendor/libyaml/docker/ubuntu-16.04 +0 -24
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/anchors.yaml +0 -10
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/array.yaml +0 -2
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/global-tag.yaml +0 -14
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/json.yaml +0 -1
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/mapping.yaml +0 -2
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/numbers.yaml +0 -1
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/strings.yaml +0 -7
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/tags.yaml +0 -7
- data/ext/apex_ext/apex_src/vendor/libyaml/examples/yaml-version.yaml +0 -3
- data/ext/apex_ext/apex_src/vendor/libyaml/include/Makefile.am +0 -17
- data/ext/apex_ext/apex_src/vendor/libyaml/include/yaml.h +0 -1999
- data/ext/apex_ext/apex_src/vendor/libyaml/pkg/ReadMe.md +0 -77
- data/ext/apex_ext/apex_src/vendor/libyaml/pkg/docker/Dockerfile +0 -32
- data/ext/apex_ext/apex_src/vendor/libyaml/pkg/docker/output/ReadMe +0 -1
- data/ext/apex_ext/apex_src/vendor/libyaml/pkg/docker/scripts/libyaml-dist.sh +0 -23
- data/ext/apex_ext/apex_src/vendor/libyaml/regression-inputs/clusterfuzz-testcase-minimized-5607885063061504.yml +0 -1
- data/ext/apex_ext/apex_src/vendor/libyaml/src/Makefile.am +0 -4
- data/ext/apex_ext/apex_src/vendor/libyaml/src/api.c +0 -1393
- data/ext/apex_ext/apex_src/vendor/libyaml/src/dumper.c +0 -394
- data/ext/apex_ext/apex_src/vendor/libyaml/src/emitter.c +0 -2358
- data/ext/apex_ext/apex_src/vendor/libyaml/src/loader.c +0 -544
- data/ext/apex_ext/apex_src/vendor/libyaml/src/parser.c +0 -1416
- data/ext/apex_ext/apex_src/vendor/libyaml/src/reader.c +0 -469
- data/ext/apex_ext/apex_src/vendor/libyaml/src/scanner.c +0 -3598
- data/ext/apex_ext/apex_src/vendor/libyaml/src/writer.c +0 -141
- data/ext/apex_ext/apex_src/vendor/libyaml/src/yaml_private.h +0 -684
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/CMakeLists.txt +0 -27
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/Makefile.am +0 -9
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/ReadMe.md +0 -63
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-deconstructor-alt.c +0 -800
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-deconstructor.c +0 -1127
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-reformatter-alt.c +0 -217
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-reformatter.c +0 -202
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-all-tests.sh +0 -29
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-dumper.c +0 -314
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-emitter-test-suite.c +0 -290
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-emitter.c +0 -327
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-loader.c +0 -63
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-parser-test-suite.c +0 -196
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-parser.c +0 -88
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-scanner.c +0 -63
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/test-reader.c +0 -354
- data/ext/apex_ext/apex_src/vendor/libyaml/tests/test-version.c +0 -29
- data/ext/apex_ext/apex_src/vendor/libyaml/yaml-0.1.pc.in +0 -10
- data/ext/apex_ext/apex_src/vendor/libyaml/yamlConfig.cmake.in +0 -16
- data/ext/apex_ext/apex_src/xcode_build/CMakeScripts/ReRunCMake.make +0 -74
- data/ext/apex_ext/apex_src/xcode_build/CTestTestfile.cmake +0 -22
- data/ext/apex_ext/apex_src/xcode_build/Debug/Apex.framework/Versions/A/Apex +0 -0
- data/ext/apex_ext/apex_src/xcode_build/Debug/Apex.framework/Versions/A/Resources/Info.plist +0 -44
- data/ext/apex_ext/apex_src/xcode_build/Debug/Apex.framework/Versions/A/_CodeSignature/CodeResources +0 -128
- data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.pbxproj +0 -5118
- data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -8
- data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.xcworkspace/xcuserdata/ttscoff.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.xcworkspace/xcuserdata/ttscoff.xcuserdatad/WorkspaceSettings.xcsettings +0 -8
- data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/xcuserdata/ttscoff.xcuserdatad/xcschemes/xcschememanagement.plist +0 -99
- data/ext/apex_ext/apex_src/xcode_build/cmake_install.cmake +0 -452
- data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/CMakeScripts/ReRunCMake.make +0 -52
- data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/cmake_install.cmake +0 -55
- data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/cmark-gfm.xcodeproj/project.pbxproj +0 -2455
- data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/cmark-gfm.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -8
- data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/extensions/cmake_install.cmake +0 -171
- data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/man/cmake_install.cmake +0 -55
- data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/cmake_install.cmake +0 -220
- data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/cmark-gfm_export.h +0 -43
- data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/cmark-gfm_version.h +0 -7
- data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/config.h +0 -76
- data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/libcmark-gfm.pc +0 -10
|
@@ -1,800 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
#include <yaml.h>
|
|
3
|
-
|
|
4
|
-
#include <stdlib.h>
|
|
5
|
-
#include <stdio.h>
|
|
6
|
-
|
|
7
|
-
int
|
|
8
|
-
main(int argc, char *argv[])
|
|
9
|
-
{
|
|
10
|
-
int help = 0;
|
|
11
|
-
int canonical = 0;
|
|
12
|
-
int unicode = 0;
|
|
13
|
-
int k;
|
|
14
|
-
int done = 0;
|
|
15
|
-
|
|
16
|
-
yaml_parser_t parser;
|
|
17
|
-
yaml_emitter_t emitter;
|
|
18
|
-
yaml_event_t input_event;
|
|
19
|
-
yaml_document_t output_document;
|
|
20
|
-
|
|
21
|
-
int root;
|
|
22
|
-
|
|
23
|
-
/* Clear the objects. */
|
|
24
|
-
|
|
25
|
-
memset(&parser, 0, sizeof(parser));
|
|
26
|
-
memset(&emitter, 0, sizeof(emitter));
|
|
27
|
-
memset(&input_event, 0, sizeof(input_event));
|
|
28
|
-
memset(&output_document, 0, sizeof(output_document));
|
|
29
|
-
|
|
30
|
-
/* Analyze command line options. */
|
|
31
|
-
|
|
32
|
-
for (k = 1; k < argc; k ++)
|
|
33
|
-
{
|
|
34
|
-
if (strcmp(argv[k], "-h") == 0
|
|
35
|
-
|| strcmp(argv[k], "--help") == 0) {
|
|
36
|
-
help = 1;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
else if (strcmp(argv[k], "-c") == 0
|
|
40
|
-
|| strcmp(argv[k], "--canonical") == 0) {
|
|
41
|
-
canonical = 1;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
else if (strcmp(argv[k], "-u") == 0
|
|
45
|
-
|| strcmp(argv[k], "--unicode") == 0) {
|
|
46
|
-
unicode = 1;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
else {
|
|
50
|
-
fprintf(stderr, "Unrecognized option: %s\n"
|
|
51
|
-
"Try `%s --help` for more information.\n",
|
|
52
|
-
argv[k], argv[0]);
|
|
53
|
-
return 1;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* Display the help string. */
|
|
58
|
-
|
|
59
|
-
if (help)
|
|
60
|
-
{
|
|
61
|
-
printf("%s <input\n"
|
|
62
|
-
"or\n%s -h | --help\nDeconstruct a YAML stream\n\nOptions:\n"
|
|
63
|
-
"-h, --help\t\tdisplay this help and exit\n"
|
|
64
|
-
"-c, --canonical\t\toutput in the canonical YAML format\n"
|
|
65
|
-
"-u, --unicode\t\toutput unescaped non-ASCII characters\n",
|
|
66
|
-
argv[0], argv[0]);
|
|
67
|
-
return 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/* Initialize the parser and emitter objects. */
|
|
71
|
-
|
|
72
|
-
if (!yaml_parser_initialize(&parser)) {
|
|
73
|
-
fprintf(stderr, "Could not initialize the parser object\n");
|
|
74
|
-
return 1;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (!yaml_emitter_initialize(&emitter)) {
|
|
78
|
-
yaml_parser_delete(&parser);
|
|
79
|
-
fprintf(stderr, "Could not inialize the emitter object\n");
|
|
80
|
-
return 1;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/* Set the parser parameters. */
|
|
84
|
-
|
|
85
|
-
yaml_parser_set_input_file(&parser, stdin);
|
|
86
|
-
|
|
87
|
-
/* Set the emitter parameters. */
|
|
88
|
-
|
|
89
|
-
yaml_emitter_set_output_file(&emitter, stdout);
|
|
90
|
-
|
|
91
|
-
yaml_emitter_set_canonical(&emitter, canonical);
|
|
92
|
-
yaml_emitter_set_unicode(&emitter, unicode);
|
|
93
|
-
|
|
94
|
-
/* Create and emit the STREAM-START event. */
|
|
95
|
-
|
|
96
|
-
if (!yaml_emitter_open(&emitter))
|
|
97
|
-
goto emitter_error;
|
|
98
|
-
|
|
99
|
-
/* Create a output_document object. */
|
|
100
|
-
|
|
101
|
-
if (!yaml_document_initialize(&output_document, NULL, NULL, NULL, 0, 0))
|
|
102
|
-
goto document_error;
|
|
103
|
-
|
|
104
|
-
/* Create the root sequence. */
|
|
105
|
-
|
|
106
|
-
root = yaml_document_add_sequence(&output_document, NULL,
|
|
107
|
-
YAML_BLOCK_SEQUENCE_STYLE);
|
|
108
|
-
if (!root) goto document_error;
|
|
109
|
-
|
|
110
|
-
/* Loop through the input events. */
|
|
111
|
-
|
|
112
|
-
while (!done)
|
|
113
|
-
{
|
|
114
|
-
int properties, key, value, map, seq;
|
|
115
|
-
|
|
116
|
-
/* Get the next event. */
|
|
117
|
-
|
|
118
|
-
if (!yaml_parser_parse(&parser, &input_event))
|
|
119
|
-
goto parser_error;
|
|
120
|
-
|
|
121
|
-
/* Check if this is the stream end. */
|
|
122
|
-
|
|
123
|
-
if (input_event.type == YAML_STREAM_END_EVENT) {
|
|
124
|
-
done = 1;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/* Create a mapping node and attach it to the root sequence. */
|
|
128
|
-
|
|
129
|
-
properties = yaml_document_add_mapping(&output_document, NULL,
|
|
130
|
-
YAML_BLOCK_MAPPING_STYLE);
|
|
131
|
-
if (!properties) goto document_error;
|
|
132
|
-
if (!yaml_document_append_sequence_item(&output_document,
|
|
133
|
-
root, properties)) goto document_error;
|
|
134
|
-
|
|
135
|
-
/* Analyze the event. */
|
|
136
|
-
|
|
137
|
-
switch (input_event.type)
|
|
138
|
-
{
|
|
139
|
-
case YAML_STREAM_START_EVENT:
|
|
140
|
-
|
|
141
|
-
/* Add 'type': 'STREAM-START'. */
|
|
142
|
-
|
|
143
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
144
|
-
(yaml_char_t *)"type", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
145
|
-
if (!key) goto document_error;
|
|
146
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
147
|
-
(yaml_char_t *)"STREAM-START", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
148
|
-
if (!value) goto document_error;
|
|
149
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
150
|
-
properties, key, value)) goto document_error;
|
|
151
|
-
|
|
152
|
-
/* Add 'encoding': <encoding>. */
|
|
153
|
-
|
|
154
|
-
if (input_event.data.stream_start.encoding)
|
|
155
|
-
{
|
|
156
|
-
yaml_encoding_t encoding
|
|
157
|
-
= input_event.data.stream_start.encoding;
|
|
158
|
-
|
|
159
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
160
|
-
(yaml_char_t *)"encoding", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
161
|
-
if (!key) goto document_error;
|
|
162
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
163
|
-
(yaml_char_t *)(encoding == YAML_UTF8_ENCODING ? "utf-8" :
|
|
164
|
-
encoding == YAML_UTF16LE_ENCODING ? "utf-16-le" :
|
|
165
|
-
encoding == YAML_UTF16BE_ENCODING ? "utf-16-be" :
|
|
166
|
-
"unknown"), -1, YAML_PLAIN_SCALAR_STYLE);
|
|
167
|
-
if (!value) goto document_error;
|
|
168
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
169
|
-
properties, key, value)) goto document_error;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
break;
|
|
173
|
-
|
|
174
|
-
case YAML_STREAM_END_EVENT:
|
|
175
|
-
|
|
176
|
-
/* Add 'type': 'STREAM-END'. */
|
|
177
|
-
|
|
178
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
179
|
-
(yaml_char_t *)"type", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
180
|
-
if (!key) goto document_error;
|
|
181
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
182
|
-
(yaml_char_t *)"STREAM-END", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
183
|
-
if (!value) goto document_error;
|
|
184
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
185
|
-
properties, key, value)) goto document_error;
|
|
186
|
-
|
|
187
|
-
break;
|
|
188
|
-
|
|
189
|
-
case YAML_DOCUMENT_START_EVENT:
|
|
190
|
-
|
|
191
|
-
/* Add 'type': 'DOCUMENT-START'. */
|
|
192
|
-
|
|
193
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
194
|
-
(yaml_char_t *)"type", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
195
|
-
if (!key) goto document_error;
|
|
196
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
197
|
-
(yaml_char_t *)"DOCUMENT-START", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
198
|
-
if (!value) goto document_error;
|
|
199
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
200
|
-
properties, key, value)) goto document_error;
|
|
201
|
-
|
|
202
|
-
/* Display the output_document version numbers. */
|
|
203
|
-
|
|
204
|
-
if (input_event.data.document_start.version_directive)
|
|
205
|
-
{
|
|
206
|
-
yaml_version_directive_t *version
|
|
207
|
-
= input_event.data.document_start.version_directive;
|
|
208
|
-
char number[64];
|
|
209
|
-
|
|
210
|
-
/* Add 'version': {}. */
|
|
211
|
-
|
|
212
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
213
|
-
(yaml_char_t *)"version", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
214
|
-
if (!key) goto document_error;
|
|
215
|
-
map = yaml_document_add_mapping(&output_document, NULL,
|
|
216
|
-
YAML_FLOW_MAPPING_STYLE);
|
|
217
|
-
if (!map) goto document_error;
|
|
218
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
219
|
-
properties, key, map)) goto document_error;
|
|
220
|
-
|
|
221
|
-
/* Add 'major': <number>. */
|
|
222
|
-
|
|
223
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
224
|
-
(yaml_char_t *)"major", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
225
|
-
if (!key) goto document_error;
|
|
226
|
-
sprintf(number, "%d", version->major);
|
|
227
|
-
value = yaml_document_add_scalar(&output_document, (yaml_char_t *)YAML_INT_TAG,
|
|
228
|
-
(yaml_char_t *)number, -1, YAML_PLAIN_SCALAR_STYLE);
|
|
229
|
-
if (!value) goto document_error;
|
|
230
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
231
|
-
map, key, value)) goto document_error;
|
|
232
|
-
|
|
233
|
-
/* Add 'minor': <number>. */
|
|
234
|
-
|
|
235
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
236
|
-
(yaml_char_t *)"minor", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
237
|
-
if (!key) goto document_error;
|
|
238
|
-
sprintf(number, "%d", version->minor);
|
|
239
|
-
value = yaml_document_add_scalar(&output_document, (yaml_char_t *)YAML_INT_TAG,
|
|
240
|
-
(yaml_char_t *)number, -1, YAML_PLAIN_SCALAR_STYLE);
|
|
241
|
-
if (!value) goto document_error;
|
|
242
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
243
|
-
map, key, value)) goto document_error;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/* Display the output_document tag directives. */
|
|
247
|
-
|
|
248
|
-
if (input_event.data.document_start.tag_directives.start
|
|
249
|
-
!= input_event.data.document_start.tag_directives.end)
|
|
250
|
-
{
|
|
251
|
-
yaml_tag_directive_t *tag;
|
|
252
|
-
|
|
253
|
-
/* Add 'tags': []. */
|
|
254
|
-
|
|
255
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
256
|
-
(yaml_char_t *)"tags", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
257
|
-
if (!key) goto document_error;
|
|
258
|
-
seq = yaml_document_add_sequence(&output_document, NULL,
|
|
259
|
-
YAML_BLOCK_SEQUENCE_STYLE);
|
|
260
|
-
if (!seq) goto document_error;
|
|
261
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
262
|
-
properties, key, seq)) goto document_error;
|
|
263
|
-
|
|
264
|
-
for (tag = input_event.data.document_start.tag_directives.start;
|
|
265
|
-
tag != input_event.data.document_start.tag_directives.end;
|
|
266
|
-
tag ++)
|
|
267
|
-
{
|
|
268
|
-
/* Add {}. */
|
|
269
|
-
|
|
270
|
-
map = yaml_document_add_mapping(&output_document, NULL,
|
|
271
|
-
YAML_FLOW_MAPPING_STYLE);
|
|
272
|
-
if (!map) goto document_error;
|
|
273
|
-
if (!yaml_document_append_sequence_item(&output_document,
|
|
274
|
-
seq, map)) goto document_error;
|
|
275
|
-
|
|
276
|
-
/* Add 'handle': <handle>. */
|
|
277
|
-
|
|
278
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
279
|
-
(yaml_char_t *)"handle", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
280
|
-
if (!key) goto document_error;
|
|
281
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
282
|
-
tag->handle, -1, YAML_DOUBLE_QUOTED_SCALAR_STYLE);
|
|
283
|
-
if (!value) goto document_error;
|
|
284
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
285
|
-
map, key, value)) goto document_error;
|
|
286
|
-
|
|
287
|
-
/* Add 'prefix': <prefix>. */
|
|
288
|
-
|
|
289
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
290
|
-
(yaml_char_t *)"prefix", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
291
|
-
if (!key) goto document_error;
|
|
292
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
293
|
-
tag->prefix, -1, YAML_DOUBLE_QUOTED_SCALAR_STYLE);
|
|
294
|
-
if (!value) goto document_error;
|
|
295
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
296
|
-
map, key, value)) goto document_error;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/* Add 'implicit': <flag>. */
|
|
301
|
-
|
|
302
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
303
|
-
(yaml_char_t *)"implicit", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
304
|
-
if (!key) goto document_error;
|
|
305
|
-
value = yaml_document_add_scalar(&output_document, (yaml_char_t *)YAML_BOOL_TAG,
|
|
306
|
-
(yaml_char_t *)(input_event.data.document_start.implicit ?
|
|
307
|
-
"true" : "false"), -1, YAML_PLAIN_SCALAR_STYLE);
|
|
308
|
-
if (!value) goto document_error;
|
|
309
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
310
|
-
properties, key, value)) goto document_error;
|
|
311
|
-
|
|
312
|
-
break;
|
|
313
|
-
|
|
314
|
-
case YAML_DOCUMENT_END_EVENT:
|
|
315
|
-
|
|
316
|
-
/* Add 'type': 'DOCUMENT-END'. */
|
|
317
|
-
|
|
318
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
319
|
-
(yaml_char_t *)"type", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
320
|
-
if (!key) goto document_error;
|
|
321
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
322
|
-
(yaml_char_t *)"DOCUMENT-END", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
323
|
-
if (!value) goto document_error;
|
|
324
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
325
|
-
properties, key, value)) goto document_error;
|
|
326
|
-
|
|
327
|
-
/* Add 'implicit': <flag>. */
|
|
328
|
-
|
|
329
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
330
|
-
(yaml_char_t *)"implicit", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
331
|
-
if (!key) goto document_error;
|
|
332
|
-
value = yaml_document_add_scalar(&output_document, (yaml_char_t *)YAML_BOOL_TAG,
|
|
333
|
-
(yaml_char_t *)(input_event.data.document_end.implicit ?
|
|
334
|
-
"true" : "false"), -1, YAML_PLAIN_SCALAR_STYLE);
|
|
335
|
-
if (!value) goto document_error;
|
|
336
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
337
|
-
properties, key, value)) goto document_error;
|
|
338
|
-
|
|
339
|
-
break;
|
|
340
|
-
|
|
341
|
-
case YAML_ALIAS_EVENT:
|
|
342
|
-
|
|
343
|
-
/* Add 'type': 'ALIAS'. */
|
|
344
|
-
|
|
345
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
346
|
-
(yaml_char_t *)"type", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
347
|
-
if (!key) goto document_error;
|
|
348
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
349
|
-
(yaml_char_t *)"ALIAS", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
350
|
-
if (!value) goto document_error;
|
|
351
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
352
|
-
properties, key, value)) goto document_error;
|
|
353
|
-
|
|
354
|
-
/* Add 'anchor': <anchor>. */
|
|
355
|
-
|
|
356
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
357
|
-
(yaml_char_t *)"anchor", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
358
|
-
if (!key) goto document_error;
|
|
359
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
360
|
-
input_event.data.alias.anchor, -1,
|
|
361
|
-
YAML_DOUBLE_QUOTED_SCALAR_STYLE);
|
|
362
|
-
if (!value) goto document_error;
|
|
363
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
364
|
-
properties, key, value)) goto document_error;
|
|
365
|
-
|
|
366
|
-
break;
|
|
367
|
-
|
|
368
|
-
case YAML_SCALAR_EVENT:
|
|
369
|
-
|
|
370
|
-
/* Add 'type': 'SCALAR'. */
|
|
371
|
-
|
|
372
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
373
|
-
(yaml_char_t *)"type", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
374
|
-
if (!key) goto document_error;
|
|
375
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
376
|
-
(yaml_char_t *)"SCALAR", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
377
|
-
if (!value) goto document_error;
|
|
378
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
379
|
-
properties, key, value)) goto document_error;
|
|
380
|
-
|
|
381
|
-
/* Add 'anchor': <anchor>. */
|
|
382
|
-
|
|
383
|
-
if (input_event.data.scalar.anchor)
|
|
384
|
-
{
|
|
385
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
386
|
-
(yaml_char_t *)"anchor", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
387
|
-
if (!key) goto document_error;
|
|
388
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
389
|
-
input_event.data.scalar.anchor, -1,
|
|
390
|
-
YAML_DOUBLE_QUOTED_SCALAR_STYLE);
|
|
391
|
-
if (!value) goto document_error;
|
|
392
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
393
|
-
properties, key, value)) goto document_error;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
/* Add 'tag': <tag>. */
|
|
397
|
-
|
|
398
|
-
if (input_event.data.scalar.tag)
|
|
399
|
-
{
|
|
400
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
401
|
-
(yaml_char_t *)"tag", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
402
|
-
if (!key) goto document_error;
|
|
403
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
404
|
-
input_event.data.scalar.tag, -1,
|
|
405
|
-
YAML_DOUBLE_QUOTED_SCALAR_STYLE);
|
|
406
|
-
if (!value) goto document_error;
|
|
407
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
408
|
-
properties, key, value)) goto document_error;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
/* Add 'value': <value>. */
|
|
412
|
-
|
|
413
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
414
|
-
(yaml_char_t *)"value", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
415
|
-
if (!key) goto document_error;
|
|
416
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
417
|
-
input_event.data.scalar.value,
|
|
418
|
-
input_event.data.scalar.length,
|
|
419
|
-
YAML_DOUBLE_QUOTED_SCALAR_STYLE);
|
|
420
|
-
if (!value) goto document_error;
|
|
421
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
422
|
-
properties, key, value)) goto document_error;
|
|
423
|
-
|
|
424
|
-
/* Display if the scalar tag is implicit. */
|
|
425
|
-
|
|
426
|
-
/* Add 'implicit': {} */
|
|
427
|
-
|
|
428
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
429
|
-
(yaml_char_t *)"version", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
430
|
-
if (!key) goto document_error;
|
|
431
|
-
map = yaml_document_add_mapping(&output_document, NULL,
|
|
432
|
-
YAML_FLOW_MAPPING_STYLE);
|
|
433
|
-
if (!map) goto document_error;
|
|
434
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
435
|
-
properties, key, map)) goto document_error;
|
|
436
|
-
|
|
437
|
-
/* Add 'plain': <flag>. */
|
|
438
|
-
|
|
439
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
440
|
-
(yaml_char_t *)"plain", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
441
|
-
if (!key) goto document_error;
|
|
442
|
-
value = yaml_document_add_scalar(&output_document, (yaml_char_t *)YAML_BOOL_TAG,
|
|
443
|
-
(yaml_char_t *)(input_event.data.scalar.plain_implicit ?
|
|
444
|
-
"true" : "false"), -1, YAML_PLAIN_SCALAR_STYLE);
|
|
445
|
-
if (!value) goto document_error;
|
|
446
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
447
|
-
map, key, value)) goto document_error;
|
|
448
|
-
|
|
449
|
-
/* Add 'quoted': <flag>. */
|
|
450
|
-
|
|
451
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
452
|
-
(yaml_char_t *)"quoted", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
453
|
-
if (!key) goto document_error;
|
|
454
|
-
value = yaml_document_add_scalar(&output_document, (yaml_char_t *)YAML_BOOL_TAG,
|
|
455
|
-
(yaml_char_t *)(input_event.data.scalar.quoted_implicit ?
|
|
456
|
-
"true" : "false"), -1, YAML_PLAIN_SCALAR_STYLE);
|
|
457
|
-
if (!value) goto document_error;
|
|
458
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
459
|
-
map, key, value)) goto document_error;
|
|
460
|
-
|
|
461
|
-
/* Display the style information. */
|
|
462
|
-
|
|
463
|
-
if (input_event.data.scalar.style)
|
|
464
|
-
{
|
|
465
|
-
yaml_scalar_style_t style = input_event.data.scalar.style;
|
|
466
|
-
|
|
467
|
-
/* Add 'style': <style>. */
|
|
468
|
-
|
|
469
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
470
|
-
(yaml_char_t *)"style", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
471
|
-
if (!key) goto document_error;
|
|
472
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
473
|
-
(yaml_char_t *)(style == YAML_PLAIN_SCALAR_STYLE ? "plain" :
|
|
474
|
-
style == YAML_SINGLE_QUOTED_SCALAR_STYLE ?
|
|
475
|
-
"single-quoted" :
|
|
476
|
-
style == YAML_DOUBLE_QUOTED_SCALAR_STYLE ?
|
|
477
|
-
"double-quoted" :
|
|
478
|
-
style == YAML_LITERAL_SCALAR_STYLE ? "literal" :
|
|
479
|
-
style == YAML_FOLDED_SCALAR_STYLE ? "folded" :
|
|
480
|
-
"unknown"), -1, YAML_PLAIN_SCALAR_STYLE);
|
|
481
|
-
if (!value) goto document_error;
|
|
482
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
483
|
-
properties, key, value)) goto document_error;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
break;
|
|
487
|
-
|
|
488
|
-
case YAML_SEQUENCE_START_EVENT:
|
|
489
|
-
|
|
490
|
-
/* Add 'type': 'SEQUENCE-START'. */
|
|
491
|
-
|
|
492
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
493
|
-
(yaml_char_t *)"type", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
494
|
-
if (!key) goto document_error;
|
|
495
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
496
|
-
(yaml_char_t *)"SEQUENCE-START", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
497
|
-
if (!value) goto document_error;
|
|
498
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
499
|
-
properties, key, value)) goto document_error;
|
|
500
|
-
|
|
501
|
-
/* Add 'anchor': <anchor>. */
|
|
502
|
-
|
|
503
|
-
if (input_event.data.sequence_start.anchor)
|
|
504
|
-
{
|
|
505
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
506
|
-
(yaml_char_t *)"anchor", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
507
|
-
if (!key) goto document_error;
|
|
508
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
509
|
-
input_event.data.sequence_start.anchor, -1,
|
|
510
|
-
YAML_DOUBLE_QUOTED_SCALAR_STYLE);
|
|
511
|
-
if (!value) goto document_error;
|
|
512
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
513
|
-
properties, key, value)) goto document_error;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
/* Add 'tag': <tag>. */
|
|
517
|
-
|
|
518
|
-
if (input_event.data.sequence_start.tag)
|
|
519
|
-
{
|
|
520
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
521
|
-
(yaml_char_t *)"tag", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
522
|
-
if (!key) goto document_error;
|
|
523
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
524
|
-
input_event.data.sequence_start.tag, -1,
|
|
525
|
-
YAML_DOUBLE_QUOTED_SCALAR_STYLE);
|
|
526
|
-
if (!value) goto document_error;
|
|
527
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
528
|
-
properties, key, value)) goto document_error;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
/* Add 'implicit': <flag>. */
|
|
532
|
-
|
|
533
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
534
|
-
(yaml_char_t *)"implicit", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
535
|
-
if (!key) goto document_error;
|
|
536
|
-
value = yaml_document_add_scalar(&output_document, (yaml_char_t *)YAML_BOOL_TAG,
|
|
537
|
-
(yaml_char_t *)(input_event.data.sequence_start.implicit ?
|
|
538
|
-
"true" : "false"), -1, YAML_PLAIN_SCALAR_STYLE);
|
|
539
|
-
if (!value) goto document_error;
|
|
540
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
541
|
-
properties, key, value)) goto document_error;
|
|
542
|
-
|
|
543
|
-
/* Display the style information. */
|
|
544
|
-
|
|
545
|
-
if (input_event.data.sequence_start.style)
|
|
546
|
-
{
|
|
547
|
-
yaml_sequence_style_t style
|
|
548
|
-
= input_event.data.sequence_start.style;
|
|
549
|
-
|
|
550
|
-
/* Add 'style': <style>. */
|
|
551
|
-
|
|
552
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
553
|
-
(yaml_char_t *)"style", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
554
|
-
if (!key) goto document_error;
|
|
555
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
556
|
-
(yaml_char_t *)(style == YAML_BLOCK_SEQUENCE_STYLE ? "block" :
|
|
557
|
-
style == YAML_FLOW_SEQUENCE_STYLE ? "flow" :
|
|
558
|
-
"unknown"), -1, YAML_PLAIN_SCALAR_STYLE);
|
|
559
|
-
if (!value) goto document_error;
|
|
560
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
561
|
-
properties, key, value)) goto document_error;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
break;
|
|
565
|
-
|
|
566
|
-
case YAML_SEQUENCE_END_EVENT:
|
|
567
|
-
|
|
568
|
-
/* Add 'type': 'SEQUENCE-END'. */
|
|
569
|
-
|
|
570
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
571
|
-
(yaml_char_t *)"type", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
572
|
-
if (!key) goto document_error;
|
|
573
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
574
|
-
(yaml_char_t *)"SEQUENCE-END", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
575
|
-
if (!value) goto document_error;
|
|
576
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
577
|
-
properties, key, value)) goto document_error;
|
|
578
|
-
|
|
579
|
-
break;
|
|
580
|
-
|
|
581
|
-
case YAML_MAPPING_START_EVENT:
|
|
582
|
-
|
|
583
|
-
/* Add 'type': 'MAPPING-START'. */
|
|
584
|
-
|
|
585
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
586
|
-
(yaml_char_t *)"type", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
587
|
-
if (!key) goto document_error;
|
|
588
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
589
|
-
(yaml_char_t *)"MAPPING-START", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
590
|
-
if (!value) goto document_error;
|
|
591
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
592
|
-
properties, key, value)) goto document_error;
|
|
593
|
-
|
|
594
|
-
/* Add 'anchor': <anchor>. */
|
|
595
|
-
|
|
596
|
-
if (input_event.data.mapping_start.anchor)
|
|
597
|
-
{
|
|
598
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
599
|
-
(yaml_char_t *)"anchor", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
600
|
-
if (!key) goto document_error;
|
|
601
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
602
|
-
input_event.data.mapping_start.anchor, -1,
|
|
603
|
-
YAML_DOUBLE_QUOTED_SCALAR_STYLE);
|
|
604
|
-
if (!value) goto document_error;
|
|
605
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
606
|
-
properties, key, value)) goto document_error;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
/* Add 'tag': <tag>. */
|
|
610
|
-
|
|
611
|
-
if (input_event.data.mapping_start.tag)
|
|
612
|
-
{
|
|
613
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
614
|
-
(yaml_char_t *)"tag", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
615
|
-
if (!key) goto document_error;
|
|
616
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
617
|
-
input_event.data.mapping_start.tag, -1,
|
|
618
|
-
YAML_DOUBLE_QUOTED_SCALAR_STYLE);
|
|
619
|
-
if (!value) goto document_error;
|
|
620
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
621
|
-
properties, key, value)) goto document_error;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
/* Add 'implicit': <flag>. */
|
|
625
|
-
|
|
626
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
627
|
-
(yaml_char_t *)"implicit", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
628
|
-
if (!key) goto document_error;
|
|
629
|
-
value = yaml_document_add_scalar(&output_document, (yaml_char_t *)YAML_BOOL_TAG,
|
|
630
|
-
(yaml_char_t *)(input_event.data.mapping_start.implicit ?
|
|
631
|
-
"true" : "false"), -1, YAML_PLAIN_SCALAR_STYLE);
|
|
632
|
-
if (!value) goto document_error;
|
|
633
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
634
|
-
properties, key, value)) goto document_error;
|
|
635
|
-
|
|
636
|
-
/* Display the style information. */
|
|
637
|
-
|
|
638
|
-
if (input_event.data.mapping_start.style)
|
|
639
|
-
{
|
|
640
|
-
yaml_mapping_style_t style
|
|
641
|
-
= input_event.data.mapping_start.style;
|
|
642
|
-
|
|
643
|
-
/* Add 'style': <style>. */
|
|
644
|
-
|
|
645
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
646
|
-
(yaml_char_t *)"style", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
647
|
-
if (!key) goto document_error;
|
|
648
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
649
|
-
(yaml_char_t *)(style == YAML_BLOCK_MAPPING_STYLE ? "block" :
|
|
650
|
-
style == YAML_FLOW_MAPPING_STYLE ? "flow" :
|
|
651
|
-
"unknown"), -1, YAML_PLAIN_SCALAR_STYLE);
|
|
652
|
-
if (!value) goto document_error;
|
|
653
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
654
|
-
properties, key, value)) goto document_error;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
break;
|
|
658
|
-
|
|
659
|
-
case YAML_MAPPING_END_EVENT:
|
|
660
|
-
|
|
661
|
-
/* Add 'type': 'MAPPING-END'. */
|
|
662
|
-
|
|
663
|
-
key = yaml_document_add_scalar(&output_document, NULL,
|
|
664
|
-
(yaml_char_t *)"type", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
665
|
-
if (!key) goto document_error;
|
|
666
|
-
value = yaml_document_add_scalar(&output_document, NULL,
|
|
667
|
-
(yaml_char_t *)"MAPPING-END", -1, YAML_PLAIN_SCALAR_STYLE);
|
|
668
|
-
if (!value) goto document_error;
|
|
669
|
-
if (!yaml_document_append_mapping_pair(&output_document,
|
|
670
|
-
properties, key, value)) goto document_error;
|
|
671
|
-
|
|
672
|
-
break;
|
|
673
|
-
|
|
674
|
-
default:
|
|
675
|
-
/* It couldn't really happen. */
|
|
676
|
-
break;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
/* Delete the event object. */
|
|
680
|
-
|
|
681
|
-
yaml_event_delete(&input_event);
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
if (!yaml_emitter_dump(&emitter, &output_document))
|
|
685
|
-
goto emitter_error;
|
|
686
|
-
if (!yaml_emitter_close(&emitter))
|
|
687
|
-
goto emitter_error;
|
|
688
|
-
|
|
689
|
-
yaml_parser_delete(&parser);
|
|
690
|
-
yaml_emitter_delete(&emitter);
|
|
691
|
-
|
|
692
|
-
return 0;
|
|
693
|
-
|
|
694
|
-
parser_error:
|
|
695
|
-
|
|
696
|
-
/* Display a parser error message. */
|
|
697
|
-
|
|
698
|
-
switch (parser.error)
|
|
699
|
-
{
|
|
700
|
-
case YAML_MEMORY_ERROR:
|
|
701
|
-
fprintf(stderr, "Memory error: Not enough memory for parsing\n");
|
|
702
|
-
break;
|
|
703
|
-
|
|
704
|
-
case YAML_READER_ERROR:
|
|
705
|
-
if (parser.problem_value != -1) {
|
|
706
|
-
fprintf(stderr, "Reader error: %s: #%X at %zd\n", parser.problem,
|
|
707
|
-
parser.problem_value, parser.problem_offset);
|
|
708
|
-
}
|
|
709
|
-
else {
|
|
710
|
-
fprintf(stderr, "Reader error: %s at %zd\n", parser.problem,
|
|
711
|
-
parser.problem_offset);
|
|
712
|
-
}
|
|
713
|
-
break;
|
|
714
|
-
|
|
715
|
-
case YAML_SCANNER_ERROR:
|
|
716
|
-
if (parser.context) {
|
|
717
|
-
fprintf(stderr, "Scanner error: %s at line %lu, column %lu\n"
|
|
718
|
-
"%s at line %lu, column %lu\n", parser.context,
|
|
719
|
-
parser.context_mark.line+1, parser.context_mark.column+1,
|
|
720
|
-
parser.problem, parser.problem_mark.line+1,
|
|
721
|
-
parser.problem_mark.column+1);
|
|
722
|
-
}
|
|
723
|
-
else {
|
|
724
|
-
fprintf(stderr, "Scanner error: %s at line %lu, column %lu\n",
|
|
725
|
-
parser.problem, parser.problem_mark.line+1,
|
|
726
|
-
parser.problem_mark.column+1);
|
|
727
|
-
}
|
|
728
|
-
break;
|
|
729
|
-
|
|
730
|
-
case YAML_PARSER_ERROR:
|
|
731
|
-
if (parser.context) {
|
|
732
|
-
fprintf(stderr, "Parser error: %s at line %lu, column %lu\n"
|
|
733
|
-
"%s at line %lu, column %lu\n", parser.context,
|
|
734
|
-
parser.context_mark.line+1, parser.context_mark.column+1,
|
|
735
|
-
parser.problem, parser.problem_mark.line+1,
|
|
736
|
-
parser.problem_mark.column+1);
|
|
737
|
-
}
|
|
738
|
-
else {
|
|
739
|
-
fprintf(stderr, "Parser error: %s at line %lu, column %lu\n",
|
|
740
|
-
parser.problem, parser.problem_mark.line+1,
|
|
741
|
-
parser.problem_mark.column+1);
|
|
742
|
-
}
|
|
743
|
-
break;
|
|
744
|
-
|
|
745
|
-
default:
|
|
746
|
-
/* Couldn't happen. */
|
|
747
|
-
fprintf(stderr, "Internal error\n");
|
|
748
|
-
break;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
yaml_event_delete(&input_event);
|
|
752
|
-
yaml_document_delete(&output_document);
|
|
753
|
-
yaml_parser_delete(&parser);
|
|
754
|
-
yaml_emitter_delete(&emitter);
|
|
755
|
-
|
|
756
|
-
return 1;
|
|
757
|
-
|
|
758
|
-
emitter_error:
|
|
759
|
-
|
|
760
|
-
/* Display an emitter error message. */
|
|
761
|
-
|
|
762
|
-
switch (emitter.error)
|
|
763
|
-
{
|
|
764
|
-
case YAML_MEMORY_ERROR:
|
|
765
|
-
fprintf(stderr, "Memory error: Not enough memory for emitting\n");
|
|
766
|
-
break;
|
|
767
|
-
|
|
768
|
-
case YAML_WRITER_ERROR:
|
|
769
|
-
fprintf(stderr, "Writer error: %s\n", emitter.problem);
|
|
770
|
-
break;
|
|
771
|
-
|
|
772
|
-
case YAML_EMITTER_ERROR:
|
|
773
|
-
fprintf(stderr, "Emitter error: %s\n", emitter.problem);
|
|
774
|
-
break;
|
|
775
|
-
|
|
776
|
-
default:
|
|
777
|
-
/* Couldn't happen. */
|
|
778
|
-
fprintf(stderr, "Internal error\n");
|
|
779
|
-
break;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
yaml_event_delete(&input_event);
|
|
783
|
-
yaml_document_delete(&output_document);
|
|
784
|
-
yaml_parser_delete(&parser);
|
|
785
|
-
yaml_emitter_delete(&emitter);
|
|
786
|
-
|
|
787
|
-
return 1;
|
|
788
|
-
|
|
789
|
-
document_error:
|
|
790
|
-
|
|
791
|
-
fprintf(stderr, "Memory error: Not enough memory for creating a document\n");
|
|
792
|
-
|
|
793
|
-
yaml_event_delete(&input_event);
|
|
794
|
-
yaml_document_delete(&output_document);
|
|
795
|
-
yaml_parser_delete(&parser);
|
|
796
|
-
yaml_emitter_delete(&emitter);
|
|
797
|
-
|
|
798
|
-
return 1;
|
|
799
|
-
}
|
|
800
|
-
|