inkmark 0.2.1-aarch64-linux → 0.3.1-aarch64-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: 58ff0a4e9bd1bfcd07927184ea3ea0d2bb2d07820b670751cef5e0b2952ad4b6
4
- data.tar.gz: 37b2aa973cc29df9908418b5844720bee46aa509d4d842528cb69dd58b09f3c1
3
+ metadata.gz: 90494d8e1379a9da04b9fdaeaed360c3860effae75fc024aa2843ef0755bb3f2
4
+ data.tar.gz: 638ac48ec4722fbaa8fddf1474fbe03e4dda63daa279511839a5e4db0339a3e4
5
5
  SHA512:
6
- metadata.gz: 5b671272d0782bce6594d10004a9c708b9e0746369ce2eaaab09bb24dd07c9ceaeb07a82e8830d29a78d47463e92a5d50a867f7d87b78863ec7554b51faa55df
7
- data.tar.gz: 333452159a046ca4fbb6da97b73bd5e40d7de7eaa40575b4ba019de1d14834691e29d0c1aefd0befe0658f21a2fbae56e388f2e53a4a29429b20bbfc7aaf75f8
6
+ metadata.gz: d90e00da4f9ba446065b2d8def9bb8e3561be05da89f89c58b2540ee83eaf49d9788a0173f095faadbbad2ac5bf6632fd30c80eb67d273b9e6f43a3dcb8452f8
7
+ data.tar.gz: 16d003be48102fdd16ca7c3014831c1f4e6746fa00f90b56c34e49617f16308db258fca26bb698b80a639b7de0b6bdb0f46bb67bb690909906972d5fe8e159c2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [0.3.1] - 2026-10-24
2
+
3
+ - Re-release of 0.3.0, which was yanked.
4
+ - Breaking: Markdown output (`to_markdown`, `chunks_by_heading`, `chunks_by_size`, `truncate_markdown`) uses pulldown-cmark-to-cmark 23; escaping and formatting differ from 0.2.
5
+ - Fix raw HTML leaking into Markdown output with `raw_html: false` when a line held more than one tag.
6
+ - Fix `chunks_by_size` and `truncate_markdown` (`at: :block`) joining blocks without a blank line, which merged adjacent paragraphs.
7
+ - Fix Markdown output crashing on an image nested in another image's alt text with `images: { lazy: true }`, `allowed_hosts`, or `allowed_schemes`.
8
+ - `chunks_by_heading` starts sections only at top-level headings; a heading inside a block quote or list item no longer splits it.
9
+ - Raise `Inkmark::Error` on Markdown serialization failures instead of crashing the process.
10
+
11
+ ## [0.3.0] - 2026-10-24 [YANKED]
12
+
13
+ - Yanked: a RubyGems issue interrupted publishing, so only one platform gem was released. Its changes shipped in 0.3.1.
14
+
15
+ ## [0.2.2] - 2026-10-24
16
+
17
+ - Updated dependencies, including pulldown-cmark 0.13.5 (upstream security fixes) and magnus 0.9.3.
18
+
1
19
  ## [0.2.1] - 2026-09-25
2
20
 
3
21
  - Updated dependencies, including magnus 0.9.
data/README.md CHANGED
@@ -206,6 +206,9 @@ Inkmark.to_html("<script>alert(1)</script>")
206
206
  # => "<p>&lt;script&gt;alert(1)&lt;/script&gt;</p>\n"
207
207
  ```
208
208
 
209
+ Markdown output escapes it too; see
210
+ [Raw HTML in the source](#raw-html-in-the-source).
211
+
209
212
  Enable pass-through with `raw_html: true`; _only do this for trusted
210
213
  input_:
211
214
 
@@ -403,6 +406,12 @@ nested `###` subsections, which also appear as their own entries. Content
403
406
  before the first heading (if any) becomes a preamble entry with
404
407
  `heading: nil` and `level: 0`.
405
408
 
409
+ Only **top-level** headings start a section. A heading inside a block
410
+ quote or list item (such as a `## Tip` in a `> [!NOTE]` callout) stays in
411
+ the content of the section around it, so the quote or list is never split
412
+ across sections. It still counts toward slug deduplication, so every
413
+ section's `:id` matches the anchor `headings: { ids: true }` generates.
414
+
406
415
  `:breadcrumb` carries the ancestor heading texts from root to immediate
407
416
  parent. Root-level sections and the preamble have an empty array. Skipped
408
417
  levels are omitted, so an `###` directly under an `#` has `breadcrumb:
@@ -740,6 +749,17 @@ Inkmark.to_markdown(source, options: {
740
749
  })
741
750
  ```
742
751
 
752
+ ### Raw HTML in the source
753
+
754
+ With `raw_html: false` (the default), raw HTML from the source comes out of
755
+ `to_markdown`, `chunks_by_heading`, `chunks_by_size`, and `truncate_markdown`
756
+ escaped, so the Markdown stays inert even if a later stage renders it with raw
757
+ HTML allowed. HTML produced by the HTML-emitting filters above is the
758
+ exception: it is embedded as described.
759
+
760
+ If the filtered document cannot be written back as Markdown, these methods
761
+ raise `Inkmark::Error`.
762
+
743
763
  ## Event handlers
744
764
 
745
765
  Register handlers with `#on` to inspect or transform document elements as they
Binary file
Binary file
Binary file
@@ -2,5 +2,5 @@
2
2
 
3
3
  class Inkmark
4
4
  # Current gem version.
5
- VERSION = "0.2.1"
5
+ VERSION = "0.3.1"
6
6
  end
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.2.1
4
+ version: 0.3.1
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Yaroslav Markin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-09-25 00:00:00.000000000 Z
11
+ date: 2026-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.1.5
103
+ version: '2.2'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.1.5
110
+ version: '2.2'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake-compiler
113
113
  requirement: !ruby/object:Gem::Requirement