Text::...::Rest(3pm)
β¨ NAME β¨
Text::Markup::Rest β the reStructuredText parser for Text::Markup, bestie π
πΈ SYNOPSIS πΈ
use Text::Markup;
my $html = Text::Markup->new->parse(file => 'hello.rst');
π¦ DESCRIPTION π¦
okay so this is literally the reStructuredText parser for Text::Markup π The reST spec lives at <https://docutils.sourceforge.io/rst.html> if you wanna go read it (iykyk).
It depends on the docutils Python package β the way that it's not a Perl thing at all, it's out here outsourcing to Python π. You can find it as python3-docutils in many Linux distributions, or you can just install it yourself with the command:
pip install docutils
It recognizes files with the following extensions as reST:
.rest
.rst
ngl, if you wanna change the files it recognizes, you load this module directly and hand it a regular expression matching whatever extension(s) you want, like this:
use Text::Markup::Rest qr{re?st(?:aurant)};
fr fr, that's the whole vibe β you control which extensions get matched, the module does the rest π«Ά
π AUTHOR π
Daniele Varrazzo <daniele.varrazzo@gmail.com> β iconic, we stan π
π COPYRIGHT AND LICENSE π
Copyright (c) 2011-2023 Daniele Varrazzo. Some Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page, bestie β no cap π§ This was perl v5.40.1, dated 2025-12-18, and it's giving Text::...::Rest(3pm) energy π slay, go parse some reST β¨
π¦ where this page comes from
- ubuntu resolute: libtext-markup-perl 0.41-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtext-markup-perl 0.41-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms