asciidoctor-mdpp 0.1.1

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.
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ # Usage: convert-mdpp.sh <SRC_DIR> <OUT_DIR>
5
+ if [ $# -lt 2 ]; then
6
+ echo "Usage: $0 SRC_DIR OUT_DIR"
7
+ exit 1
8
+ fi
9
+
10
+ # remove trailing slashes
11
+ SRC_DIR="${1%/}"
12
+ OUT_DIR="${2%/}"
13
+
14
+ # locate converter
15
+ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
16
+ PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
17
+ CONVERTER="$PROJECT_ROOT/lib/asciidoctor/converter/mdpp.rb"
18
+
19
+ find "$SRC_DIR" -type f '(' -iname '*.adoc' -o -iname '*.asciidoc' ')' -print0 |
20
+ while IFS= read -r -d '' src; do
21
+ rel="${src#$SRC_DIR/}"
22
+ # set output file extension to .md for Markdown++ output
23
+ dst="$OUT_DIR/${rel%.*}.md"
24
+ mkdir -p "$(dirname "$dst")"
25
+
26
+ # show progress
27
+ echo "Converting: $src -> $dst"
28
+ asciidoctor -r "$CONVERTER" -b mdpp -o "$dst" "$src"
29
+ done
@@ -0,0 +1,6 @@
1
+ module Asciidoctor
2
+ module Mdpp
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: asciidoctor-mdpp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - WebWorks - Quadralay Corporation
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2025-05-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: asciidoctor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ description: Ruby-based Asciidoctor converter for converting AsciiDoc files to Markdown++
28
+ files.
29
+ email:
30
+ - development@webworks.com
31
+ executables: []
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - ".memory-bank/activeContext.md"
36
+ - ".memory-bank/productContext.md"
37
+ - ".memory-bank/progress.md"
38
+ - ".memory-bank/projectbrief.md"
39
+ - ".memory-bank/systemPatterns.md"
40
+ - ".memory-bank/techContext.md"
41
+ - ".rspec"
42
+ - CHANGELOG.md
43
+ - CODE_OF_CONDUCT.md
44
+ - CONTRIBUTING.md
45
+ - LICENSE.txt
46
+ - README.md
47
+ - Rakefile
48
+ - adoc/samples/demo.adoc
49
+ - adoc/samples/nested_ulist.adoc
50
+ - adoc/samples/unordered-lists.adoc
51
+ - docs/conversion-guidelines.md
52
+ - docs/development-guide.md
53
+ - docs/line-break-challenges.md
54
+ - docs/mdpp-specification/includes.md
55
+ - docs/mdpp-specification/multi-line-tables.md
56
+ - docs/mdpp-specification/overview.md
57
+ - lib/asciidoctor-mdpp.rb
58
+ - lib/asciidoctor/converter/mdpp.rb
59
+ - lib/asciidoctor/mdpp.rb
60
+ - lib/asciidoctor/mdpp/version.rb
61
+ - scripts/convert-mdpp-file.sh
62
+ - scripts/convert-mdpp.sh
63
+ - sig/asciidocter/mdpp.rbs
64
+ homepage: https://github.com/quadralay/asciidoctor-mdpp
65
+ licenses:
66
+ - MIT
67
+ metadata:
68
+ homepage_uri: https://github.com/quadralay/asciidoctor-mdpp
69
+ source_code_uri: https://github.com/quadralay/asciidoctor-mdpp
70
+ changelog_uri: https://github.com/quadralay/asciidoctor-mdpp/blob/main/CHANGELOG.md
71
+ post_install_message:
72
+ rdoc_options: []
73
+ require_paths:
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: 3.0.0
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ requirements: []
86
+ rubygems_version: 3.3.5
87
+ signing_key:
88
+ specification_version: 4
89
+ summary: Ruby-based Asciidoctor converter for converting AsciiDoc files to Markdown++
90
+ files.
91
+ test_files: []