v3.0.2
Summary
This release is based on Asciidoctor 2.0.20 and Opal 1.7.3.
Release meta
Released on: 2023-06-24
Released by: @ggrossetie
Published by: GitHub Actions
Logs: full diff
Changelog
Breaking Changes
-
Remove
Asciidoctor
namespace in TypeScript:import asciidoctor, { Document } from '@asciidoctor/core' const Asciidoctor = asciidoctor() Asciidoctor.convert('Hello _world_')
-
Publish
@asciidoctor/core
as an ES6 module
Bug Fixes
- Strip alternate BOM that uses char code 65279 when input passes through a Buffer (#1344)
- Map
Document.append
(#1681) - Bridge converter pass as option (#1666)
- Add
getSectionNumeral()
function by @benjaminleonard (#1659) - Fix
getDocinfo
andfindBy
type definition (#1621) - Bridge common Ruby object methods (#1491)
parseContent
now callstoHash
on attrs (#1519)
Improvements
-
Map
this.super.<method>
to call the parent function (#1682) -
Map
AbstractBlock.getContentModel
andAbstractBlock.setContentModel
(#1680) -
Map
Document.getSyntaxHighlighter
(#1667) -
Map
CompositeConverter#convert
(#1649) -
Simplify table option checks by @mojavelinux (#1656)
-
Support Stream.Writable as
to_file
(#1624)const data = [] const writableStream = new Writable({ write (chunk, encoding, callback) { data.push(chunk.toString()) callback() } }) const doc = Asciidoctor.convert(text, { to_file: writableStream, safe: safe }) const html = data.join('')
Infrastructure
- Upgrade GraalVM to 20.1.0 (#1035)
Documentation
- Improve contributing guide by @cunka (#1676)
- Remove call to
convert()
on return value of process method for inline macro extension by @mojavelinux (#1653)
New Contributors
- @djencks made their first contribution in #978
- @bitPogo made their first contribution in #1083
- @cm-wada-yusuke made their first contribution in #1176
- @abelsromero made their first contribution in #1290
- @benjaminleonard made their first contribution in #1659
- @cunka made their first contribution in #1676