Text::...::Rest(3pm)

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

✨ 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 (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