You mean:
import asciidoctor, { AbstractBlock } from '@asciidoctor/core';
const Asciidoctor = asciidoctor();
Ideally, we should have:
import { convert, AbstractBlock } from '@asciidoctor/core';
const html = convert('Hello _world_');
The reason we have to instantiate something is mostly a limitation/workaround for Opal.
Originally posted by @ggrossetie in asciidoctor/asciidoctor.js#1669 (comment)
You mean:
Ideally, we should have:
The reason we have to instantiate something is mostly a limitation/workaround for Opal.
Originally posted by @ggrossetie in asciidoctor/asciidoctor.js#1669 (comment)