Text::...::Trac(3pm)

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

πŸ¦‹ 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_url
  • disable_links
  • enable_links

πŸ‘‘ AUTHOR πŸ‘‘

David E. Wheeler <david@justatheory.com>


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