asciidoctor.js
asciidoctor.js copied to clipboard
:scroll: A JavaScript port of Asciidoctor, a modern implementation of AsciiDoc
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | devDependencies | patch | [`18.7.18` -> `18.7.21`](https://renovatebot.com/diffs/npm/@types%2fnode/18.7.18/18.7.21) | | [eslint](https://eslint.org) ([source](https://togithub.com/eslint/eslint))...
In https://github.com/asciidoctor/asciidoctor/blob/d352fa7ef051c7fbcf05ae70ac69eedfd4bdc694/lib/asciidoctor/document.rb#L809 the append method is overwritten to update the section numbers when adding a section to a document (similar code exists for sections). Calling `append()` on a document in...
https://github.com/asciidoctor/asciidoctor/blob/6c56c809986cb67e76f865ef324e5ff35ce5b850/lib/asciidoctor/abstract_block.rb#L11-L17
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@rollup/plugin-commonjs](https://redirect.github.com/rollup/plugins/tree/master/packages/commonjs/#readme) ([source](https://redirect.github.com/rollup/plugins/tree/HEAD/packages/commonjs)) | devDependencies | major | [`25.0.7` -> `28.0.6`](https://renovatebot.com/diffs/npm/@rollup%2fplugin-commonjs/25.0.7/28.0.6) | | [@rollup/plugin-replace](https://redirect.github.com/rollup/plugins/tree/master/packages/replace#readme)...
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@rollup/plugin-commonjs](https://redirect.github.com/rollup/plugins/tree/master/packages/commonjs/#readme) ([source](https://redirect.github.com/rollup/plugins/tree/HEAD/packages/commonjs)) | devDependencies | patch | [`25.0.7` -> `25.0.8`](https://renovatebot.com/diffs/npm/@rollup%2fplugin-commonjs/25.0.7/25.0.8) | | [@rollup/plugin-replace](https://redirect.github.com/rollup/plugins/tree/master/packages/replace#readme)...
When I reuse an `registry`, in subsequent calls to `convert()`, the registered extensions don't work. See the sample code, which is based on [an example from docs](https://docs.asciidoctor.org/asciidoctor.js/latest/extend/extensions/register/#register-one-or-more-extensions): ```js const asciidoctor...
For certain blocks, calling `getContent()` can return Opal.nil. Until Asciidoctor > 2.0.18 is released, this can happen if a raw (e.g., passthrough) or verbatim (e.g., listing) block has no lines....
Exact error message on `@asciidoctor/core` version `3.0.2`: > Could not find a declaration file for module '@asciidoctor/core', '${PROJECT}/node_modules/@asciidoctor/core/dist/browser/asciidoctor.js' implicitly has 'any' type. > There are types at '${PROJECT}/node_modules/@asciidoctor/core/types/index.d.ts', but this...
I think it would be really helpful do have a migration guide from 2.x to 3.x to answer the questions about compatibility of extensions based on 2.x Asciidoctor.js and 3.x....
The current 3.0.0 prerelease code uses `string` as the return type for the `AbstractConverter.convert` method: https://github.com/asciidoctor/asciidoctor.js/blob/a8c4c96829975c7f47c9fab59d5f35bddd7535da/packages/core/types/index.d.ts#L3119-L3132 When I inquired about the return type on the Zulip forums, I [received the...