commonmarker 1.0.0.pre12 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66ae092bc1da22502edf2dccb8709f14c87128503eedf76e1c17aa348686dfe9
4
- data.tar.gz: 20cebb526aa41fb1f1f98ad4958e943e5c5e6dcefcea0620732ac01553a0fd2e
3
+ metadata.gz: 85921d084201b65163962bf17204ff09c361dc4e1a26908ea2c56aa173404133
4
+ data.tar.gz: 7deac978275f7c05f69f2a2321d5ca6f0ee2b25fe7384eaf7135d64041d4efea
5
5
  SHA512:
6
- metadata.gz: 31dad33f45ec8106299d7089ff1e72971b202ab853b83f3fcb884ac640f760941575c6f7494dd13e3d1acf6a449cfc48a1d2cb0b3123b149c996824ce771142b
7
- data.tar.gz: 28e6ae936f089c690fc1b18bc03ec8a1ba4e247ef5e55ecd46e37eebf2223bd8a298e096a81e46a9968ab467196ae9d5d952b5586254c2dbcbabcbd745834e84
6
+ metadata.gz: cc07f14b640cc0847f494d8c20cbf60f35f49cf00dea3fd24f37f54ecd46bff899d22e746229190f4a9cfc4bafab8f2a8313fa610894d6ad7c8b42eddf5a6b7a
7
+ data.tar.gz: f5d73daf8edee7002fd65c1d2f106c82e3ac46903575c15cf2510659ab6de7227ff4411f4d460ff8893810f6e737b90a275a8486d5cbcaa7d25c93c57eafc7e0
data/README.md CHANGED
@@ -70,6 +70,7 @@ Note that there is a distinction in comrak for "parse" options and "render" opti
70
70
  | `width` | The wrap column when outputting CommonMark. | `80` |
71
71
  | `unsafe` | Allow rendering of raw HTML and potentially dangerous links. | `false` |
72
72
  | `escape` | Escape raw HTML instead of clobbering it. | `false` |
73
+ | `sourcepos` | Include source position attribute in HTML and XML output. | `false` |
73
74
 
74
75
  As well, there are several extensions which you can toggle in the same manner:
75
76
 
@@ -33,6 +33,7 @@ const RENDER_GITHUB_PRE_LANG: &str = "github_pre_lang";
33
33
  const RENDER_WIDTH: &str = "width";
34
34
  const RENDER_UNSAFE: &str = "unsafe";
35
35
  const RENDER_ESCAPE: &str = "escape";
36
+ const RENDER_SOURCEPOS: &str = "sourcepos";
36
37
 
37
38
  fn iterate_render_options(comrak_options: &mut ComrakOptions, options_hash: RHash) {
38
39
  options_hash
@@ -53,6 +54,9 @@ fn iterate_render_options(comrak_options: &mut ComrakOptions, options_hash: RHas
53
54
  Ok(Cow::Borrowed(RENDER_ESCAPE)) => {
54
55
  comrak_options.render.escape = TryConvert::try_convert(value)?;
55
56
  }
57
+ Ok(Cow::Borrowed(RENDER_SOURCEPOS)) => {
58
+ comrak_options.render.sourcepos = TryConvert::try_convert(value)?;
59
+ }
56
60
  _ => {}
57
61
  }
58
62
  Ok(ForEach::Continue)
@@ -15,6 +15,7 @@ module Commonmarker
15
15
  width: 80,
16
16
  unsafe: false,
17
17
  escape: false,
18
+ sourcepos: false,
18
19
  }.freeze,
19
20
  extension: {
20
21
  strikethrough: true,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Commonmarker
4
- VERSION = "1.0.0.pre12"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonmarker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre12
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-12-07 00:00:00.000000000 Z
12
+ date: 2023-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb_sys
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: 3.3.22
105
105
  requirements: []
106
- rubygems_version: 3.4.22
106
+ rubygems_version: 3.5.3
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: CommonMark parser and renderer. Written in Rust, wrapped in Ruby.