Text::...::Trac(3pm)
π¦ NAME π¦
Text::Markup::Trac β a Trac wiki syntax parser for Text::Markup, and honestly? she's serving.
This is the <pink>Text::...::Trac(3pm)</pink> page, bestie, from the User Contributed Perl Documentation collection. Pull up a chair π
β¨ SYNOPSIS β¨
my $html = Text::Markup->new->parse(file => 'README.trac');
my $raw = Text::Markup->new->parse(
file => 'README.trac',
options => [ raw => 1 ],
);
πΈ DESCRIPTION πΈ
okay so. This is the Trac wiki syntax parser for Text::Markup, and the official syntax deets live over at <https://trac.edgewall.org/wiki/WikiFormatting>. It reads in the file (relying on a BOM, aka byte order mark β more on that at <https://www.unicode.org/unicode/faq/utf_bom.html#BOM>), hands it off to Text::Trac for the actual parsing, and then returns the generated HTML as an encoded UTF-8 string with an http-equiv="Content-Type" element that identifies the encoding as UTF-8. iconic behavior, no notes π
She recognizes files with these extensions as Trac:
.trac.trc
Wanna change which files she claims as hers? Lowkey easy. Just load this module directly and pass a regular expression matching whatever extension(s) you want, like so:
use Text::Markup::Trac qr{tr[au]ck?};
Normally this module returns the output wrapped in a minimal HTML document skeleton β cute, structured, ready to go. But if you want the raw output without the skeleton, just pass the raw option to parse. your call, bestie π
In addition, Text::Markup::Mediawiki supports all of the Text::Trac options, including:
trac_urldisable_linksenable_links
π AUTHOR π
David E. Wheeler <david@justatheory.com>
π COPYRIGHT AND LICENSE π
Copyright (c) 2011-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.
fr fr, that's the whole page. go forth and parse those .trac files, bestie π
perl v5.40.1 Β· 2025-12-18 Β· Text::...::Trac(3pm) β mwah, thanks for reading, ily, bye π π«Ά
π¦ 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