inkmark 0.1.1-x86_64-linux → 0.1.3-x86_64-linux

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: e2a15e50a66a9f65d9e60d598ce05bec29af8eb820995b32c371a2f170fb2d39
4
- data.tar.gz: 6a05cdb5f0df0a58423e6276594e37d5f0602119835fc6668a6e67b13c80cdf6
3
+ metadata.gz: d3d72b51b78b82b2e41b4df33577091dc25b7d1bd47307fb4019e6ce43da9ec5
4
+ data.tar.gz: 5a9e1bea46b7d4a5c679ef1f02313d234c02f54f9edd6331c93d22182a66bc55
5
5
  SHA512:
6
- metadata.gz: ee9062294806ea2d7d6e6ceba879e693e09aedfa1e3dd0476ff993b43b4543e2330efa592cdf64d3f2c78351e2a4b72d3a7106a8113228c718957f3a123f461e
7
- data.tar.gz: 11b33439d3e6624937add388a5b5d2c7640993a5e38f91ecd12e1d1c3c1de8e1e0f80810bbd7583c1cc61c34dce4d84e4f1addb4a326d8c0add1b043dee1c7c2
6
+ metadata.gz: 90b3571ade15e54a05037704b96db0d980115a3538469a2f02d2f24ff8c7b6209b9b69e3c9d19079263d50a705d0928a9d1c95d12fc3085df31c7a091627f41f
7
+ data.tar.gz: 477eb505f54c132c48cb713348987d22cec85ab4c974e86926eac1e1f755e6ec001c48ac8d9ba8dde0beabd7cf884e2d5a74bfee9dfd715b1811f3229c36a07c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [0.1.3] - 2026-06-21
2
+
3
+ - Fix possible XSS via unescaped language tag in syntax-highlighted code blocks.
4
+
5
+ ## [0.1.2] - 2026-06-21
6
+
7
+ - Fix `Inkmark.truncate_markdown` raising `TypeError` when called without explicit `options:`.
8
+ - Update dependencies on the Rust side.
9
+
1
10
  ## [0.1.1] - 2026-04-22
2
11
 
3
12
  - Strip DWARF debug info from shipped Linux and Windows binaries via `strip = "debuginfo"`.
data/README.md CHANGED
@@ -18,6 +18,11 @@ A very fast, feature-packed, AI-first Markdown gem for Ruby.
18
18
  - **Security conscious**. Raw HTML denied by default. Hostname and URL-scheme allowlists for both links and images. GFM tagfilter for dangerous tags. A Rust-backed gem.
19
19
  - **Easy extension API**. Hook any element with a Ruby block—no subclassing, no intermediate AST, no HTML post-processing. Rewrite URLs, swap code blocks for your own renderer, drop subtrees, or just walk the document for analysis. Handlers fire inside the single-pass parser, so extension costs essentially nothing beyond the render itself—and far less than regexing over output HTML.
20
20
 
21
+ **See the introductory post for background and motivation**:
22
+
23
+ **[Inkmark: a very fast, feature-packed, AI-first Markdown gem for Ruby
24
+ ](https://yaroslav.io/posts/inkmark-fast-ai-first-markdown)**
25
+
21
26
  ## Contents
22
27
 
23
28
  - [Installation](#installation)
@@ -50,6 +55,8 @@ gem "inkmark"
50
55
 
51
56
  Ruby 3.3+ is supported.
52
57
 
58
+ The gem comes precompiled, a compiler toolchain is _not_ required for installation.
59
+
53
60
  ## Quick start
54
61
 
55
62
  ```ruby
Binary file
Binary file
Binary file
@@ -2,5 +2,5 @@
2
2
 
3
3
  class Inkmark
4
4
  # Current gem version.
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.3"
6
6
  end
data/lib/inkmark.rb CHANGED
@@ -222,7 +222,13 @@ class Inkmark
222
222
  params = normalize_truncate_params(
223
223
  chars: chars, words: words, at: at, marker: marker
224
224
  )
225
- _native_truncate_markdown(source, params, resolve_frozen_options(options))
225
+ # truncate's native binding requires an options Hash; unlike the
226
+ # to_html/to_plain_text bindings it has no nil fast path, so fall
227
+ # back to the default options hash when the resolver returns nil.
228
+ _native_truncate_markdown(
229
+ source, params,
230
+ resolve_frozen_options(options) || default_options.to_native_hash_frozen
231
+ )
226
232
  end
227
233
 
228
234
  # Render +source+ through the filter pipeline and serialize to plain
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inkmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Yaroslav Markin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-04-22 00:00:00.000000000 Z
11
+ date: 2026-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake