inkmark 0.2.2-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 +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +20 -0
- data/lib/inkmark/3.3/inkmark.so +0 -0
- data/lib/inkmark/3.4/inkmark.so +0 -0
- data/lib/inkmark/4.0/inkmark.so +0 -0
- data/lib/inkmark/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: 90494d8e1379a9da04b9fdaeaed360c3860effae75fc024aa2843ef0755bb3f2
|
|
4
|
+
data.tar.gz: 638ac48ec4722fbaa8fddf1474fbe03e4dda63daa279511839a5e4db0339a3e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d90e00da4f9ba446065b2d8def9bb8e3561be05da89f89c58b2540ee83eaf49d9788a0173f095faadbbad2ac5bf6632fd30c80eb67d273b9e6f43a3dcb8452f8
|
|
7
|
+
data.tar.gz: 16d003be48102fdd16ca7c3014831c1f4e6746fa00f90b56c34e49617f16308db258fca26bb698b80a639b7de0b6bdb0f46bb67bb690909906972d5fe8e159c2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
1
15
|
## [0.2.2] - 2026-10-24
|
|
2
16
|
|
|
3
17
|
- Updated dependencies, including pulldown-cmark 0.13.5 (upstream security fixes) and magnus 0.9.3.
|
data/README.md
CHANGED
|
@@ -206,6 +206,9 @@ Inkmark.to_html("<script>alert(1)</script>")
|
|
|
206
206
|
# => "<p><script>alert(1)</script></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
|
data/lib/inkmark/3.3/inkmark.so
CHANGED
|
Binary file
|
data/lib/inkmark/3.4/inkmark.so
CHANGED
|
Binary file
|
data/lib/inkmark/4.0/inkmark.so
CHANGED
|
Binary file
|
data/lib/inkmark/version.rb
CHANGED
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.
|
|
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-10-
|
|
11
|
+
date: 2026-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|