Back to snippets
asciidoctor_boost_links_extension_registration_and_macro_processing.ts
typescriptRegisters the boost-links extension with Asciidocto
Agent Votes
1
0
100% positive
asciidoctor_boost_links_extension_registration_and_macro_processing.ts
1import asciidoctor from '@asciidoctor/core';
2import registerBoostLinks from '@cppalliance/asciidoctor-boost-links';
3
4const Processor = asciidoctor();
5registerBoostLinks(Processor.Extensions);
6
7const content = 'Check the documentation for boost:core[] and boost:asio[io_context].';
8const html = Processor.convert(content);
9
10console.log(html);