buckram 1.10.0 → 1.10.2

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "1.10.0"
2
+ ".": "1.10.2"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.10.2](https://github.com/pressbooks/buckram/compare/v1.10.1...v1.10.2) (2026-06-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * keep wrapped links clickable and single-tagged in PDF export ([#425](https://github.com/pressbooks/buckram/issues/425)) ([b5fd4cc](https://github.com/pressbooks/buckram/commit/b5fd4cc38be3583069efaeea462832298712bb46))
9
+
10
+ ## [1.10.1](https://github.com/pressbooks/buckram/compare/v1.10.0...v1.10.1) (2026-06-16)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * links should be underlined by default for all formats (fix [#419](https://github.com/pressbooks/buckram/issues/419)) ([#420](https://github.com/pressbooks/buckram/issues/420)) ([c0653ad](https://github.com/pressbooks/buckram/commit/c0653ad45a6a6dff99089623eb2cf4ed5901323a))
16
+ * prevent hyphenation within links (see pressbooks/pressbooks[#2512](https://github.com/pressbooks/buckram/issues/2512)) ([#422](https://github.com/pressbooks/buckram/issues/422)) ([be1fb8f](https://github.com/pressbooks/buckram/commit/be1fb8f199e7f477962eec969f558561711806c1))
17
+
3
18
  ## [1.10.0](https://github.com/pressbooks/buckram/compare/v1.9.1...v1.10.0) (2026-05-06)
4
19
 
5
20
 
@@ -10,11 +10,24 @@
10
10
 
11
11
  @if $type != 'web' {
12
12
  a {
13
+ hyphens: none;
13
14
  text-decoration: if-map-get($link-text-decoration, $type);
14
15
  }
15
16
  }
16
17
 
17
18
  @if $type == 'prince' {
19
+ // Render each anchor as a single atomic box so PrinceXML emits one PDF link
20
+ // rectangle (and one OBJR tag) for the whole anchor, even when a long URL
21
+ // wraps across lines. This keeps the entire URL clickable
22
+ // (pressbooks/pressbooks#2512) and stops screen readers repeating the link
23
+ // from duplicate OBJR tags (pressbooks/private#2394). max-width and
24
+ // overflow-wrap let the URL wrap inside the box instead of overflowing.
25
+ a {
26
+ display: inline-block;
27
+ max-width: 100%;
28
+ overflow-wrap: break-word;
29
+ }
30
+
18
31
  .print a {
19
32
  text-decoration: $link-text-decoration-print;
20
33
  }
@@ -1280,7 +1280,7 @@ $sup-line-height: $sup-sub-line-height !default;
1280
1280
  /// Text decoration for `<a>` elements.
1281
1281
  /// @type String
1282
1282
  $link-text-decoration: (
1283
- epub: none,
1283
+ epub: underline,
1284
1284
  prince: underline,
1285
1285
  web: underline
1286
1286
  ) !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buckram",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "Opinionated SCSS components for books (web, EPUB and PDF).",
5
5
  "scripts": {
6
6
  "build": "composer install && composer test",