kramdown-rfc2629 1.0.15 → 1.0.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 415435adcd30dce9da6da437a10ac6bfcd645439
4
- data.tar.gz: 3231425b7d41bc22ecee2ac7b123132c20ba8d1a
3
+ metadata.gz: d185a2521bf8a68afaafd57d47166d0aab04e18c
4
+ data.tar.gz: 14bbac32bea8185668b33c34afa1e1d4b58171f3
5
5
  SHA512:
6
- metadata.gz: 7eca778adc8f44986b3d797d8417439b2c308c705b3dd15c6fae9a42dadfb426e192f9c231a8499c10de6a7504a0f858a417de6246760286f5a518d9bd3c1360
7
- data.tar.gz: 2bbb6f3d12c894846e397cc8f29880a9febee6acaed4a5206cdb06bd0b30436b71f34331eda26cb524a616605ba7cf0e2f9db4641b08969246e087359903af8c
6
+ metadata.gz: b10af17eea7c6a15475138ea9111f8210313209e212f55fc3cbcfe7d46649d48c288d6deebb9b848287e33683eed3b71122fef524ee77c32e9b7f9fbfa9017f2
7
+ data.tar.gz: 1a71a3ba5238a3f1acd9d261025b78db78ce3c4d92c6210cc0583fc6870f6bea98bc964eaf527896cc11e885e54466039d6fb940cdcfb5c836b3d7be6bc6527d
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'kramdown-rfc2629'
3
- s.version = '1.0.15'
3
+ s.version = '1.0.16'
4
4
  s.summary = "Kramdown extension for generating RFC 2629 XML."
5
5
  s.description = %{An RFC2629 (XML2RFC) generating backend for Thomas Leitner's
6
6
  "kramdown" markdown parser. Mostly useful for RFC writers.}
@@ -417,8 +417,14 @@ module Kramdown
417
417
  "<spanx#{attrstring}>#{escape_html(el.value)}</spanx>"
418
418
  end
419
419
 
420
- def convert_footnote(el, indent, opts) # XXX: This is wrong.
421
- "<xref target='#{escape_html(el.value)}'#{el_html_attributes(el)}/>"
420
+ def convert_footnote(el, indent, opts) # XXX: footnotes into crefs???
421
+ # this would be more like xml2rfc v3:
422
+ # "\n#{' '*indent}<cref>\n#{inner(el.value, indent, opts).rstrip}\n#{' '*indent}</cref>"
423
+ content = inner(el.value, indent, opts).strip
424
+ content = escape_html(content.sub(/\A<t>(.*)<\/t>\z/m) {$1}, :text) # text only...
425
+ name = el.options[:name].sub(/\A[0-9]/) {"_" << $&}
426
+ attrstring = el_html_attributes_with(el, {"anchor" => name})
427
+ "\n#{' '*indent}<cref#{attrstring}>#{content}</cref>"
422
428
  end
423
429
 
424
430
  def convert_raw(el, indent, opts)
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.0.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-05 00:00:00.000000000 Z
11
+ date: 2014-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown