Text::Markup::Asciidoc(3pm) | User Contributed Perl Documentation | Text::Markup::Asciidoc(3pm) |
Text::Markup::Asciidoc - Asciidoc parser for Text::Markup
use Text::Markup; my $html = Text::Markup->new->parse(file => 'hello.adoc'); my $raw_asciidoc = Text::Markup->new->parse(file => 'hello.adoc', raw => 1 );
This is the Asciidoc <http://www.methods.co.nz/asciidoc/> parser for Text::Markup. It depends on the "asciidoc" command-line application, for which there are many binary distributions <http://www.methods.co.nz/asciidoc/INSTALL.html>. It recognizes files with the following extensions as Asciidoc:
Normally this parser returns the output of "asciidoc" wrapped in a minimal HTML page skeleton. If you would prefer to just get the exact output returned by "asciidoc", you can pass in a true value for the "raw" option.
David E. Wheeler <david@justatheory.com>
Copyright (c) 2012-2019 David E. Wheeler. Some Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2019-12-14 | perl v5.30.0 |