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 +4 -4
- data/README.md +1 -0
- data/ext/commonmarker/src/options.rs +4 -0
- data/lib/commonmarker/config.rb +1 -0
- data/lib/commonmarker/version.rb +1 -1
- 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: 85921d084201b65163962bf17204ff09c361dc4e1a26908ea2c56aa173404133
|
4
|
+
data.tar.gz: 7deac978275f7c05f69f2a2321d5ca6f0ee2b25fe7384eaf7135d64041d4efea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/commonmarker/config.rb
CHANGED
data/lib/commonmarker/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2023-12-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rb_sys
|