commonmarker 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2159f7183aad352dddbc641e768f71f10ec493704dc0dd6c0f174b3c37ecb2d
4
- data.tar.gz: 102a3ab3c0328c7ce7e06ab75bfe748ccd16cd36522e21911cee9ac63fa7794f
3
+ metadata.gz: 85921d084201b65163962bf17204ff09c361dc4e1a26908ea2c56aa173404133
4
+ data.tar.gz: 7deac978275f7c05f69f2a2321d5ca6f0ee2b25fe7384eaf7135d64041d4efea
5
5
  SHA512:
6
- metadata.gz: 23de100a3da35a015e418846d7361f12c665b23d6e9d214ad15f526741a446b52b63e2f5bd345d0a8ebfdc34751be666d5b64482ee10dc0926cec6f71c38a636
7
- data.tar.gz: 2159ff7f540a238bba64171f2494b264ff86126518e8a81f4744f0befabc0be5a4f55948507890c72245ee3b085d1030b71780295c531f4bd97a268d17f32e7d
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"
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
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-24 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