kramdown-rfc2629 1.6.21 → 1.6.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -4
- data/kramdown-rfc2629.gemspec +1 -1
- data/lib/kramdown-rfc2629.rb +14 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36eb88304fc5acb9cb238a4f8a57e71ef9da4dec152b69341d203646bc3d2b9b
|
4
|
+
data.tar.gz: 42b17cfb81557c9acb78f3de7425e9a3582af7e7f816e952d6d6d73ea0da663a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd2112c31d9fc36f675535f058cd99a5bb3a5eb1e0ab1a30f2e40b0d6e4a0d9b230e7f955ee349baadaf0380fc7ef44cf90ff48f7ce185a0a291178aef310abc
|
7
|
+
data.tar.gz: fd9801e85edf0e0b4af4d16945331ead8c455f7ddca5a43922f11a172a52a4000e2442e687d384b25e65d53f1e7b3193bf1e6e2d17f222caaaa6038536f9ab37
|
data/README.md
CHANGED
@@ -318,8 +318,8 @@ Currently supported labels as of 1.3.9:
|
|
318
318
|
plaintext form is used
|
319
319
|
* [mermaid][]: Very experimental; the conversion to SVG is prone to
|
320
320
|
generate black-on-black text in this version
|
321
|
-
* math: display math using [tex2svg][] for HTML/PDF and [
|
322
|
-
|
321
|
+
* math: display math using [tex2svg][] for HTML/PDF and [utftex][]
|
322
|
+
for plaintext
|
323
323
|
|
324
324
|
[goat]: https://github.com/blampe/goat
|
325
325
|
[ditaa]: https://github.com/stathissideris/ditaa
|
@@ -327,8 +327,7 @@ Currently supported labels as of 1.3.9:
|
|
327
327
|
[plantuml]: https://plantuml.com
|
328
328
|
[mermaid]: https://github.com/mermaid-js/mermaid-cli
|
329
329
|
[tex2svg]: https://github.com/mathjax/MathJax-demos-node/blob/master/direct/tex2svg
|
330
|
-
[
|
331
|
-
[asciiTeX-eggert]: https://github.com/larseggert/asciiTeX
|
330
|
+
[utftex]: https://github.com/bartp5/libtexprintf
|
332
331
|
|
333
332
|
Note that this feature does not play well with the CI (continuous
|
334
333
|
integration) support in Martin Thomson's [I-D Template][], as that may
|
data/kramdown-rfc2629.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
spec = Gem::Specification.new do |s|
|
2
2
|
s.name = 'kramdown-rfc2629'
|
3
|
-
s.version = '1.6.
|
3
|
+
s.version = '1.6.22'
|
4
4
|
s.summary = "Kramdown extension for generating RFCXML (RFC 799x)."
|
5
5
|
s.description = %{An RFCXML (RFC 799x) generating backend for Thomas Leitner's
|
6
6
|
"kramdown" markdown parser. Mostly useful for RFC writers.}
|
data/lib/kramdown-rfc2629.rb
CHANGED
@@ -537,9 +537,20 @@ COLORS
|
|
537
537
|
result, err, _s = Open3.capture3("kgt -l abnf -e rr#{t == "railroad" ? "text" : "utf8"}#{txt_opt}",
|
538
538
|
stdin_data: result);
|
539
539
|
err << err1.to_s
|
540
|
-
when "math"
|
540
|
+
when "math", "math-asciitex"
|
541
|
+
math = Shellwords.escape(result)
|
541
542
|
result1, err, _s = Open3.capture3("tex2svg --font STIX --speech=false#{svg_opt} #{Shellwords.escape(' ' << result)}");
|
542
|
-
|
543
|
+
begin
|
544
|
+
raise Errno::ENOENT if t == "math-asciitex"
|
545
|
+
result, err1, s = Open3.capture3("utftex #{math}#{txt_opt}")
|
546
|
+
if s.exitstatus != 0
|
547
|
+
warn "** utftex: #{err1.inspect}"
|
548
|
+
raise Errno::ENOENT
|
549
|
+
end
|
550
|
+
rescue Errno::ENOENT
|
551
|
+
warn "** utftex not working, falling back to asciitex" unless t == "math-asciitex"
|
552
|
+
result, err1, _s = Open3.capture3("asciitex -f #{file.path}#{txt_opt}")
|
553
|
+
end
|
543
554
|
err << err1
|
544
555
|
end
|
545
556
|
capture_croak(t, err)
|
@@ -609,7 +620,7 @@ COLORS
|
|
609
620
|
end
|
610
621
|
case t
|
611
622
|
when "aasvg", "ditaa", "goat",
|
612
|
-
"math", "mermaid", "mscgen",
|
623
|
+
"math", "math-asciitex", "mermaid", "mscgen",
|
613
624
|
"plantuml", "plantuml-utxt",
|
614
625
|
"protocol", "protocol-aasvg", "protocol-goat",
|
615
626
|
"railroad", "railroad-utf8"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kramdown-rfc2629
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carsten Bormann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kramdown
|