Text::...ciidoc(3pm)

πŸ“¦
version 0.41 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

🌸 Text::...ciidoc β€” the manual page, but make it a vibe 🌸

okay bestie, this is Text::...ciidoc(3pm), part of the Perl user-contributed docs, and it's literally just a cute little parser wrapper. sit with me, it's short and it slays πŸ’…


✨ NAME ✨

Text::Markup::Asciidoc β€” an Asciidoc parser for Text::Markup. that's it, that's the whole name section, we love a concise queen πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

look at her. so clean. so demure.

use Text::Markup;
my $html = Text::Markup->new->parse(file => 'hello.adoc');
my $raw = Text::Markup->new->parse(
    file    => 'hello.adoc',
    options => [raw => 1],
);

πŸ¦‹ DESCRIPTION πŸ¦‹

so this is the Asciidoc parser for Text::Markup β€” you can find Asciidoc over at https://asciidoc.org/ if you wanna say hi 🫢

here's the thing though: it does not work alone. it depends on the asciidoc command-line application, which lives at https://asciidoc-py.github.io β€” go check the installation docs at https://asciidoc-py.github.io/INSTALL.html for the deets, or honestly just run this and let it cook:

pip3 install asciidoc

πŸ‘‘ what files does it claim?

Text::Markup::Asciidoc recognizes files with the following extensions as Asciidoc:

  • .asciidoc
  • .asc
  • .adoc

πŸ’– changing the vibe check

wanna make it recognize different extensions? iconic. just load this module directly and hand it a regular expression matching whatever extension(s) you want, like so:

use Text::Markup::Asciidoc qr{ski?doc};

πŸ“ raw mode, no cap

normally this parser returns the output of asciidoc wrapped in a minimal HTML page skeleton. cute, presentable, ready to post πŸ“Έ

but if you'd rather just get the exact output returned by asciidoc with zero wrapping, pass in a true value for the raw option. raw dogging the output, as the ancients said. ✨


🌈 AUTHOR 🌈

David E. Wheeler <david@justatheory.com> β€” the mastermind, the moment, the main character πŸ’œ


Copyright (c) 2012-2025 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.


ngl bestie, the fact that it's just Perl-licensed means you can remix, redistribute, and reorganize β€” go off πŸ‘‘

and that's the whole page!! no crumbs left. this doc is from Perl v5.40.1, dated 2025-12-18, and it's filed under Text::...ciidoc(3pm) β€” mwah, slay, periodt πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from