asciidoctor 2.0.11 → 2.0.12

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: 11a800adcdf4265d33a08cd8a131f72c4d0ae4fbafdca247c857743151f7a62a
4
- data.tar.gz: d469b8d294a613e6cf41d8bfb20064adfae9f053bb37b23873a0dc18247d7060
3
+ metadata.gz: 63300fdec712603ef3bcd94f0ffefcf409471851030c9ef4884939da23b60303
4
+ data.tar.gz: b4fce4c962f9f62dd0ace6665ac53277529f00b17f49a5ec77c0fc1a01c4a6be
5
5
  SHA512:
6
- metadata.gz: 471623feae9609099d5687e8a0231650990fb4b8fc39f95cfa64a8afcfc6777465354fec84e2d083088fb3706016eb3146cd83305c0c9242de61ded5bb10d046
7
- data.tar.gz: 73959dff4b12916de260b924d5496ecef849e1989e9167ad3a74f812d937a7697b97289af0e74c85ed139aad962730b6f516f41e09d870ffbe5839afbba469db
6
+ metadata.gz: f8864b33f6bd1aa4e0e425050de59ab7e193aab248df31968b61bf014c72d2e64cae8b89c8cda074c5b25f7fe7fe8c0adb7a9c1b237f4ebef8eaca337f4773d5
7
+ data.tar.gz: ef875df64d41583613ff6d333c1d8decf59ad7870768711e9405b4128505876d9a0a3dad904e559d03752d12cbc0665cd4aed40998ca95303af513bee55aaed5
@@ -13,7 +13,29 @@ endif::[]
13
13
  This document provides a high-level view of the changes introduced in Asciidoctor by release.
14
14
  For a detailed view of what has changed, refer to the {uri-repo}/commits/master[commit history] on GitHub.
15
15
 
16
- // tag::compact[]
16
+ == 2.0.12.rc.1 (2020-11-10) - @mojavelinux
17
+
18
+ Bug Fixes::
19
+
20
+ * Set type and target property on unresolved footnote reference and unset id property (fixes regression) (#3825)
21
+ * Fix crash when inlining an SVG if the explicit width or height value on the image node is not a string (#3829)
22
+ * Reset word wrap behavior to normal on tables, then reenable again for admonition content, horizontal dlist description, and AsciiDoc table cells (#3833)
23
+
24
+ Improvements::
25
+
26
+ * Pass through role to DocBook output for inline image (#3832)
27
+
28
+ Compliance::
29
+
30
+ * Defer use of Ruby >= 2.3 constructs to restore compatibility with Ruby 2.0 until at least next minor release (#3827)
31
+ * Don't append the default px unit identifier to the explicit width or height value when inlining an SVG (#3829)
32
+
33
+ Build / Infrastructure::
34
+
35
+ * Migrate Linux CI jobs to GitHub Actions (#3837)
36
+ * Migrate Windows CI jobs to GitHub Actions (#3839)
37
+ * Run CI job on macOS (#3842)
38
+
17
39
  == 2.0.11 (2020-11-02) - @mojavelinux
18
40
 
19
41
  Bug Fixes::
@@ -93,7 +115,6 @@ Build / Infrastructure::
93
115
  * Upgrade TruffleRuby to 20.0.0 (*@mogztter*)
94
116
  * Trigger upstream builds for AsciidoctorJ on Github Actions (*@robertpanzer*)
95
117
 
96
- // end::compact[]
97
118
  == 2.0.10 (2019-05-31) - @mojavelinux
98
119
 
99
120
  Bug Fixes::
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>; Ryan Waldron <https://github.com/erebor[@erebor]>
3
- v2.0.11, 2020-11-02
3
+ v2.0.12, 2020-11-10
4
4
  // settings:
5
5
  :idprefix:
6
6
  :idseparator: -
@@ -8,7 +8,6 @@ v2.0.11, 2020-11-02
8
8
  :language: {source-language}
9
9
  ifndef::env-github[:icons: font]
10
10
  ifdef::env-github[]
11
- :status:
12
11
  :outfilesuffix: .adoc
13
12
  :caution-caption: :fire:
14
13
  :important-caption: :exclamation:
@@ -17,7 +16,7 @@ ifdef::env-github[]
17
16
  :warning-caption: :warning:
18
17
  endif::[]
19
18
  // Variables:
20
- :release-version: 2.0.11
19
+ :release-version: 2.0.12
21
20
  // URIs:
22
21
  :uri-org: https://github.com/asciidoctor
23
22
  :uri-repo: {uri-org}/asciidoctor
@@ -84,15 +83,6 @@ endif::[]
84
83
  * {uri-docs}/user-manual[Asciidoctor Gebrauchshandbuch]
85
84
  * {uri-docs}/asciidoc-syntax-quick-reference[AsciiDoc Syntax-Referenz]
86
85
 
87
- ifdef::status[]
88
- .*Projekt Status*
89
- image:https://img.shields.io/travis/asciidoctor/asciidoctor/master.svg[Build Status (Travis CI), link=https://travis-ci.org/asciidoctor/asciidoctor]
90
- image:https://ci.appveyor.com/api/projects/status/ifplu67oxvgn6ceq/branch/master?svg=true&amp;passingText=green%20bar&amp;failingText=%23fail&amp;pendingText=building%2E%2E%2E[Build Status (AppVeyor), link=https://ci.appveyor.com/project/asciidoctor/asciidoctor]
91
- //image:https://img.shields.io/coveralls/asciidoctor/asciidoctor/master.svg[Coverage Status, link=https://coveralls.io/r/asciidoctor/asciidoctor]
92
- //image:https://codeclimate.com/github/asciidoctor/asciidoctor/badges/gpa.svg[Code Climate, link="https://codeclimate.com/github/asciidoctor/asciidoctor"]
93
- image:https://inch-ci.org/github/asciidoctor/asciidoctor.svg?branch=master[Inline docs, link="https://inch-ci.org/github/asciidoctor/asciidoctor"]
94
- endif::[]
95
-
96
86
  == Sponsoren
97
87
 
98
88
  Wir möchten unseren großzügigen Sponsoren danken, ohne deren Unterstützung Asciidoctor nicht möglich wäre.
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>; Ryan Waldron <https://github.com/erebor[@erebor]>
3
- v2.0.11, 2020-11-02
3
+ v2.0.12, 2020-11-10
4
4
  // settings:
5
5
  :idprefix:
6
6
  :idseparator: -
@@ -8,7 +8,6 @@ v2.0.11, 2020-11-02
8
8
  :language: {source-language}
9
9
  ifndef::env-github[:icons: font]
10
10
  ifdef::env-github[]
11
- :status:
12
11
  :outfilesuffix: .adoc
13
12
  :caution-caption: :fire:
14
13
  :important-caption: :exclamation:
@@ -17,7 +16,7 @@ ifdef::env-github[]
17
16
  :warning-caption: :warning:
18
17
  endif::[]
19
18
  // Variables:
20
- :release-version: 2.0.11
19
+ :release-version: 2.0.12
21
20
  // URIs:
22
21
  :uri-org: https://github.com/asciidoctor
23
22
  :uri-repo: {uri-org}/asciidoctor
@@ -81,15 +80,6 @@ endif::[]
81
80
  * {uri-docs}/asciidoc-syntax-quick-reference[Syntaxe de Référence AsciiDoc]
82
81
  * {uri-docs}/user-manual[Manuel Utilisateur Asciidoctor]
83
82
 
84
- ifdef::status[]
85
- .*Santé du projet*
86
- image:https://img.shields.io/travis/asciidoctor/asciidoctor/master.svg[Build Status (Travis CI), link=https://travis-ci.org/asciidoctor/asciidoctor]
87
- image:https://ci.appveyor.com/api/projects/status/ifplu67oxvgn6ceq/branch/master?svg=true&amp;passingText=green%20bar&amp;failingText=%23fail&amp;pendingText=building%2E%2E%2E[Build Status (AppVeyor), link=https://ci.appveyor.com/project/asciidoctor/asciidoctor]
88
- //image:https://img.shields.io/coveralls/asciidoctor/asciidoctor/master.svg[Coverage Status, link=https://coveralls.io/r/asciidoctor/asciidoctor]
89
- //image:https://codeclimate.com/github/asciidoctor/asciidoctor/badges/gpa.svg[Code Climate, link="https://codeclimate.com/github/asciidoctor/asciidoctor"]
90
- image:https://inch-ci.org/github/asciidoctor/asciidoctor.svg?branch=master[Inline docs, link="https://inch-ci.org/github/asciidoctor/asciidoctor"]
91
- endif::[]
92
-
93
83
  == Sponsors
94
84
 
95
85
  Nous souhaitons exprimer toute notre reconnaissance à nos généreux sponsors, sans qui Asciidoctor ne pourrait pas exister.
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>; Ryan Waldron <https://github.com/erebor[@erebor]>
3
- v2.0.11, 2020-11-02
3
+ v2.0.12, 2020-11-10
4
4
  // settings:
5
5
  :idprefix:
6
6
  :idseparator: -
@@ -8,7 +8,6 @@ v2.0.11, 2020-11-02
8
8
  :language: {source-language}
9
9
  ifndef::env-github[:icons: font]
10
10
  ifdef::env-github[]
11
- :status:
12
11
  :outfilesuffix: .adoc
13
12
  :caution-caption: :fire:
14
13
  :important-caption: :exclamation:
@@ -17,7 +16,7 @@ ifdef::env-github[]
17
16
  :warning-caption: :warning:
18
17
  endif::[]
19
18
  // Variables:
20
- :release-version: 2.0.11
19
+ :release-version: 2.0.12
21
20
  // URIs:
22
21
  :uri-org: https://github.com/asciidoctor
23
22
  :uri-repo: {uri-org}/asciidoctor
@@ -90,28 +89,12 @@ endif::[]
90
89
  * {uri-docs}/user-manual[Asciidoctor User Manual]
91
90
  * {uri-docs}/asciidoc-syntax-quick-reference[AsciiDoc Syntax Reference]
92
91
 
93
- ifdef::status[]
94
- //.*Project health*
95
- image:https://img.shields.io/gem/v/asciidoctor.svg[Latest Release, link={uri-gem}]
96
- image:https://img.shields.io/badge/rubydoc.info-{release-version}-blue.svg[library (API) docs,link=https://www.rubydoc.info/gems/asciidoctor/{release-version}]
97
- image:https://img.shields.io/travis/asciidoctor/asciidoctor/master.svg[Build Status (Travis CI),link=https://travis-ci.org/asciidoctor/asciidoctor]
98
- image:https://ci.appveyor.com/api/projects/status/ifplu67oxvgn6ceq/branch/master?svg=true&amp;passingText=green%20bar&amp;failingText=%23fail&amp;pendingText=building%2E%2E%2E[Build Status (AppVeyor),link=https://ci.appveyor.com/project/asciidoctor/asciidoctor]
99
- //image:https://img.shields.io/coveralls/asciidoctor/asciidoctor/master.svg[Coverage Status,link=https://coveralls.io/r/asciidoctor/asciidoctor]
100
- //image:https://codeclimate.com/github/asciidoctor/asciidoctor/badges/gpa.svg[Code Climate,link=https://codeclimate.com/github/asciidoctor/asciidoctor]
101
- image:https://inch-ci.org/github/asciidoctor/asciidoctor.svg?branch=master[Inline docs,link=https://inch-ci.org/github/asciidoctor/asciidoctor]
102
- endif::[]
103
-
104
92
  == スポンサー
105
93
 
106
94
  {uri-project}/supporters[スポンサー] のみなさまが, このプロジェクトをサポートし, より良いテクニカルドキュメンテーションの実現にコミットメントをしてくださっていることに感謝します.
107
95
  スポンサーのみなさま, ありがとうございます!
108
96
  みなさまの多くのサポートなくしてAsciidoctorは実現不可能です.
109
97
 
110
- ifndef::env-site,env-yard[]
111
- Asciidoctorの主な資金的サポートは, *Change Maker* である https://opendevise.com[OpenDevise], *Strategy Sponsors* である https://www.khronos.org/[Khronos Group] とLinda Roberts, そして *Pull Request Backers* である Brian Dominick, Guillaume Grossetie, Abel Salgado Romero によって提供されています.
112
- さらに, {uri-project}/supporters[Community Backers] のページに掲載されているサポーターによって追加的な資金が提供されています.
113
- endif::[]
114
-
115
98
  https://opencollective.com/asciidoctor[OpenCollective] を通じてスポンサーになることにより, このプロジェクトを支援することができます.
116
99
 
117
100
  == 全体像
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>; Ryan Waldron <https://github.com/erebor[@erebor]>
3
- v2.0.11, 2020-11-02
3
+ v2.0.12, 2020-11-10
4
4
  // settings:
5
5
  :page-layout: base
6
6
  :idprefix:
@@ -9,7 +9,6 @@ v2.0.11, 2020-11-02
9
9
  :language: {source-language}
10
10
  ifndef::env-github[:icons: font]
11
11
  ifdef::env-github[]
12
- :status:
13
12
  :outfilesuffix: .adoc
14
13
  :caution-caption: :fire:
15
14
  :important-caption: :exclamation:
@@ -18,7 +17,7 @@ ifdef::env-github[]
18
17
  :warning-caption: :warning:
19
18
  endif::[]
20
19
  // Variables:
21
- :release-version: 2.0.11
20
+ :release-version: 2.0.12
22
21
  // URIs:
23
22
  :uri-org: https://github.com/asciidoctor
24
23
  :uri-repo: {uri-org}/asciidoctor
@@ -89,15 +88,6 @@ Asciidoctor 也可以运行在 JavaScript 上。
89
88
  Asciidoctor.js 被用于预览 AsciiDoc,支持 Chrome 扩展,Atom,Brackets 或其他基于 Web 的工具。
90
89
  ****
91
90
 
92
- ifdef::status[]
93
- .*Project health*
94
- image:https://img.shields.io/travis/asciidoctor/asciidoctor/master.svg[Build Status (Travis CI), link=https://travis-ci.org/asciidoctor/asciidoctor]
95
- image:https://ci.appveyor.com/api/projects/status/ifplu67oxvgn6ceq/branch/master?svg=true&amp;passingText=green%20bar&amp;failingText=%23fail&amp;pendingText=building%2E%2E%2E[Build Status (AppVeyor), link=https://ci.appveyor.com/project/asciidoctor/asciidoctor]
96
- //image:https://img.shields.io/coveralls/asciidoctor/asciidoctor/master.svg[Coverage Status, link=https://coveralls.io/r/asciidoctor/asciidoctor]
97
- //image:https://codeclimate.com/github/asciidoctor/asciidoctor/badges/gpa.svg[Code Climate, link="https://codeclimate.com/github/asciidoctor/asciidoctor"]
98
- image:https://inch-ci.org/github/asciidoctor/asciidoctor.svg?branch=master[Inline docs, link="https://inch-ci.org/github/asciidoctor/asciidoctor"]
99
- endif::[]
100
-
101
91
  [#the-big-picture]
102
92
  == 整体概况
103
93
 
@@ -326,7 +316,7 @@ WARNING: 当你通过 API 使用 Asciidoctor 时,默认的安全模式是 `:se
326
316
  在 secure 模式下,很多核心特性将不可用,包括 `include` 特性。
327
317
  如果你想启用这些特性,你需要明确设置安全模式为 `:server` (推荐)或 `:safe`。
328
318
 
329
- 你也可以将 AsciiDoc 字符串转化我内嵌的 HTML (为了插入到一个 HTML 页面),用法如下:
319
+ 你也可以将 AsciiDoc 字符串转化为可内嵌的 HTML (为了插入到一个 HTML 页面),用法如下:
330
320
 
331
321
  [source]
332
322
  ----
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>; Ryan Waldron <https://github.com/erebor[@erebor]>
3
- v2.0.11, 2020-11-02
3
+ v2.0.12, 2020-11-10
4
4
  // settings:
5
5
  :idprefix:
6
6
  :idseparator: -
@@ -17,7 +17,7 @@ ifdef::env-github[]
17
17
  :warning-caption: :warning:
18
18
  endif::[]
19
19
  // Variables:
20
- :release-version: 2.0.11
20
+ :release-version: 2.0.12
21
21
  // URIs:
22
22
  :uri-org: https://github.com/asciidoctor
23
23
  :uri-repo: {uri-org}/asciidoctor
@@ -94,8 +94,7 @@ ifdef::status[]
94
94
  //.*Project health*
95
95
  image:https://img.shields.io/gem/v/asciidoctor.svg[Latest Release, link={uri-gem}]
96
96
  image:https://img.shields.io/badge/rubydoc.info-{release-version}-blue.svg[library (API) docs,link=https://www.rubydoc.info/gems/asciidoctor/{release-version}]
97
- image:https://img.shields.io/travis/asciidoctor/asciidoctor/master.svg[Build Status (Travis CI),link=https://travis-ci.org/asciidoctor/asciidoctor]
98
- image:https://ci.appveyor.com/api/projects/status/ifplu67oxvgn6ceq/branch/master?svg=true&amp;passingText=green%20bar&amp;failingText=%23fail&amp;pendingText=building%2E%2E%2E[Build Status (AppVeyor),link=https://ci.appveyor.com/project/asciidoctor/asciidoctor]
97
+ image:https://github.com/asciidoctor/asciidoctor/workflows/CI/badge.svg[Build Status (GitHub Actions),link={uri-repo}/actions]
99
98
  //image:https://img.shields.io/coveralls/asciidoctor/asciidoctor/master.svg[Coverage Status,link=https://coveralls.io/r/asciidoctor/asciidoctor]
100
99
  //image:https://codeclimate.com/github/asciidoctor/asciidoctor/badges/gpa.svg[Code Climate,link=https://codeclimate.com/github/asciidoctor/asciidoctor]
101
100
  image:https://inch-ci.org/github/asciidoctor/asciidoctor.svg?branch=master[Inline docs,link=https://inch-ci.org/github/asciidoctor/asciidoctor]
@@ -107,11 +106,6 @@ We want to recognize our {uri-project}/supporters[sponsors] for their commitment
107
106
  Thank you sponsors!
108
107
  Without your generous support, Asciidoctor would not be possible.
109
108
 
110
- ifndef::env-site,env-yard[]
111
- Major funding for Asciidoctor is provided by our *Change Maker*, https://opendevise.com[OpenDevise], our *Strategy Sponsors*, https://www.khronos.org/[Khronos Group] and Linda Roberts, and our *Pull Request Backers*, Brian Dominick, Guillaume Grossetie, and Abel Salgado Romero.
112
- Additional funding is provided by the supporters listed on our {uri-project}/supporters[Community Backers] page.
113
- endif::[]
114
-
115
109
  You can support this project by becoming a sponsor through https://opencollective.com/asciidoctor[OpenCollective].
116
110
 
117
111
  == The Big Picture
@@ -93,12 +93,12 @@ h1{font-size:2.75em}
93
93
  h2{font-size:2.3125em}
94
94
  h3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em}
95
95
  h4{font-size:1.4375em}}
96
- table{background:#fff;margin-bottom:1.25em;border:solid 1px #dedede}
96
+ table{background:#fff;margin-bottom:1.25em;border:solid 1px #dedede;word-wrap:normal}
97
97
  table thead,table tfoot{background:#f7f8f7}
98
98
  table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left}
99
99
  table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)}
100
100
  table tr.even,table tr.alt{background:#f8f8f7}
101
- table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{display:table-cell;line-height:1.6}
101
+ table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{line-height:1.6}
102
102
  h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-spacing:-.05em}
103
103
  h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400}
104
104
  .center{margin-left:auto;margin-right:auto}
@@ -196,7 +196,7 @@ table.tableblock #preamble>.sectionbody>[class="paragraph"]:first-of-type p{font
196
196
  .admonitionblock>table td.icon{text-align:center;width:80px}
197
197
  .admonitionblock>table td.icon img{max-width:none}
198
198
  .admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase}
199
- .admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6)}
199
+ .admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6);word-wrap:anywhere}
200
200
  .admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0}
201
201
  .exampleblock>.content{border-style:solid;border-width:1px;border-color:#e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;-webkit-border-radius:4px;border-radius:4px}
202
202
  .exampleblock>.content>:first-child{margin-top:0}
@@ -252,9 +252,8 @@ pre.pygments .lineno::before{content:"";margin-right:-.125em}
252
252
  .quoteblock.excerpt,.quoteblock .quoteblock{margin-left:0}
253
253
  .quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{color:inherit;font-size:1.0625rem}
254
254
  .quoteblock.excerpt .attribution,.quoteblock .quoteblock .attribution{color:inherit;text-align:left;margin-right:0}
255
- table.tableblock{max-width:100%}
256
255
  p.tableblock:last-child{margin-bottom:0}
257
- td.tableblock>.content{margin-bottom:1.25em}
256
+ td.tableblock>.content{margin-bottom:1.25em;word-wrap:anywhere}
258
257
  td.tableblock>.content>:last-child{margin-bottom:-1.25em}
259
258
  table.tableblock,th.tableblock,td.tableblock{border:0 solid #dedede}
260
259
  table.grid-all>*>tr>*{border-width:1px}
@@ -275,7 +274,7 @@ th.valign-top,td.valign-top{vertical-align:top}
275
274
  th.valign-bottom,td.valign-bottom{vertical-align:bottom}
276
275
  th.valign-middle,td.valign-middle{vertical-align:middle}
277
276
  table thead th,table tfoot th{font-weight:bold}
278
- tbody tr th{display:table-cell;line-height:1.6;background:#f7f8f7}
277
+ tbody tr th{background:#f7f8f7}
279
278
  tbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:rgba(0,0,0,.8);font-weight:bold}
280
279
  p.tableblock>code:only-child{background:none;padding:0}
281
280
  p.tableblock{font-size:1em}
@@ -304,6 +303,7 @@ ol.lowergreek{list-style-type:lower-greek}
304
303
  .hdlist>table>tbody>tr,.colist>table>tbody>tr{background:none}
305
304
  td.hdlist1,td.hdlist2{vertical-align:top;padding:0 .625em}
306
305
  td.hdlist1{font-weight:bold;padding-bottom:1.25em}
306
+ td.hdlist2{word-wrap:anywhere}
307
307
  .literalblock+.colist,.listingblock+.colist{margin-top:-.5em}
308
308
  .colist td:not([class]):first-child{padding:.4em .75em 0;line-height:1;vertical-align:top}
309
309
  .colist td:not([class]):first-child img{max-width:none}
@@ -513,7 +513,7 @@ class Converter::DocBook5Converter < Converter::Base
513
513
  def convert_inline_image node
514
514
  width_attribute = (node.attr? 'width') ? %( contentwidth="#{node.attr 'width'}") : ''
515
515
  depth_attribute = (node.attr? 'height') ? %( contentdepth="#{node.attr 'height'}") : ''
516
- %(<inlinemediaobject>
516
+ %(<inlinemediaobject#{common_attributes nil, node.role}>
517
517
  <imageobject>
518
518
  <imagedata fileref="#{node.type == 'icon' ? (node.icon_uri node.target) : (node.image_uri node.target)}"#{width_attribute}#{depth_attribute}/>
519
519
  </imageobject>
@@ -1268,17 +1268,13 @@ Your browser does not support the video tag.
1268
1268
  old_start_tag = new_start_tag = start_tag_match = nil
1269
1269
  # NOTE width, height and style attributes are removed if either width or height is specified
1270
1270
  ['width', 'height'].each do |dim|
1271
- if node.attr? dim
1272
- unless new_start_tag
1273
- next if (start_tag_match ||= (svg.match SvgStartTagRx) || :no_match) == :no_match
1274
- new_start_tag = (old_start_tag = start_tag_match[0]).gsub DimensionAttributeRx, ''
1275
- end
1276
- unless (dim_val = node.attr dim).end_with? '%'
1277
- # QUESTION should we add px since it's already the default?
1278
- dim_val += 'px'
1279
- end
1280
- new_start_tag = %(#{new_start_tag.chop} #{dim}="#{dim_val}">)
1271
+ next unless node.attr? dim
1272
+ unless new_start_tag
1273
+ next if (start_tag_match ||= (svg.match SvgStartTagRx) || :no_match) == :no_match
1274
+ new_start_tag = (old_start_tag = start_tag_match[0]).gsub DimensionAttributeRx, ''
1281
1275
  end
1276
+ # NOTE a unitless value in HTML is assumed to be px, so we can pass the value straight through
1277
+ new_start_tag = %(#{new_start_tag.chop} #{dim}="#{node.attr dim}">)
1282
1278
  end
1283
1279
  svg = %(#{new_start_tag}#{svg[old_start_tag.length..-1]}) if new_start_tag
1284
1280
  end
@@ -2284,7 +2284,8 @@ class Parser
2284
2284
  table.has_header_option = true
2285
2285
  elsif skipped == 0 && !attributes['noheader-option']
2286
2286
  # NOTE: assume table has header until we know otherwise; if it doesn't (nil), cells in first row get reprocessed
2287
- table.has_header_option = implicit_header = true
2287
+ table.has_header_option = :implicit
2288
+ implicit_header = true
2288
2289
  end
2289
2290
  parser_ctx = Table::ParserContext.new table_reader, table, attributes
2290
2291
  format, loop_idx, implicit_header_boundary = parser_ctx.format, -1, nil
@@ -2393,7 +2394,7 @@ class Parser
2393
2394
  end
2394
2395
 
2395
2396
  table.assign_column_widths unless (table.attributes['colcount'] ||= table.columns.size) == 0 || explicit_colspecs
2396
- attributes['header-option'] = '' if implicit_header
2397
+ table.has_header_option = true if implicit_header
2397
2398
  table.partition_header_footer attributes
2398
2399
 
2399
2400
  table
@@ -859,7 +859,7 @@ module Substitutors
859
859
  type, target = :ref, nil
860
860
  else
861
861
  logger.warn %(invalid footnote reference: #{id})
862
- index, text = nil, id
862
+ type, target, text, id = :xref, id, id, nil
863
863
  end
864
864
  elsif text
865
865
  text = restore_passthroughs(normalize_text text, true, true)
@@ -78,10 +78,10 @@ class Table < AbstractBlock
78
78
  @attributes['orientation'] = 'landscape' if attributes['rotate-option']
79
79
  end
80
80
 
81
- # Internal: Returns whether the current row being processed is
82
- # the header row
81
+ # Internal: Returns the current state of the header option (true or :implicit) if
82
+ # the row being processed is (or is assumed to be) the header row, otherwise nil
83
83
  def header_row?
84
- @has_header_option && @rows.body.empty?
84
+ (val = @has_header_option) && @rows.body.empty? ? val : nil
85
85
  end
86
86
 
87
87
  # Internal: Creates the Column objects from the column spec
@@ -239,10 +239,10 @@ class Table::Cell < AbstractBlock
239
239
  # NOTE: column is always set when parsing; may not be set when building table from the API
240
240
  if column
241
241
  if (in_header_row = column.table.header_row?)
242
- if (cell_style = column.style || attributes&.[]('style')) == :asciidoc || cell_style == :literal
243
- @reinitialize_args = [column, cell_text, attributes&.merge, opts]
242
+ if in_header_row == :implicit && (cell_style = column.style || (attributes && attributes['style']))
243
+ @reinitialize_args = [column, cell_text, attributes && attributes.merge, opts] if cell_style == :asciidoc || cell_style == :literal
244
+ cell_style = nil
244
245
  end
245
- cell_style = nil
246
246
  else
247
247
  cell_style = column.style
248
248
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Asciidoctor
3
- VERSION = '2.0.11'
3
+ VERSION = '2.0.12'
4
4
  end
@@ -1,13 +1,13 @@
1
1
  '\" t
2
2
  .\" Title: asciidoctor
3
3
  .\" Author: Dan Allen, Sarah White, Ryan Waldron
4
- .\" Generator: Asciidoctor 2.0.11
5
- .\" Date: 2020-11-02
4
+ .\" Generator: Asciidoctor 2.0.12
5
+ .\" Date: 2020-11-10
6
6
  .\" Manual: Asciidoctor Manual
7
- .\" Source: Asciidoctor 2.0.11
7
+ .\" Source: Asciidoctor 2.0.12
8
8
  .\" Language: English
9
9
  .\"
10
- .TH "ASCIIDOCTOR" "1" "2020-11-02" "Asciidoctor 2.0.11" "Asciidoctor Manual"
10
+ .TH "ASCIIDOCTOR" "1" "2020-11-10" "Asciidoctor 2.0.12" "Asciidoctor Manual"
11
11
  .ie \n(.g .ds Aq \(aq
12
12
  .el .ds Aq '
13
13
  .ss \n[.ss] 0
@@ -1,7 +1,7 @@
1
1
  = asciidoctor(1)
2
2
  Dan Allen; Sarah White; Ryan Waldron
3
3
  :doctype: manpage
4
- :release-version: 2.0.11
4
+ :release-version: 2.0.12
5
5
  :man manual: Asciidoctor Manual
6
6
  :man source: Asciidoctor {release-version}
7
7
  :page-layout: base
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.11
4
+ version: 2.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Allen
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2018-03-20 00:00:00.000000000 Z
16
+ date: 2020-11-10 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: asciimath
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
324
  - !ruby/object:Gem::Version
325
325
  version: '0'
326
326
  requirements: []
327
- rubygems_version: 3.0.6
327
+ rubygems_version: 3.1.4
328
328
  signing_key:
329
329
  specification_version: 4
330
330
  summary: An implementation of the AsciiDoc text processor and publishing toolchain