Text::Trac(3pm)
β¨ Text::Trac β¨
okay bestie, so this is Text::Trac β a Perl extension for formatting text with Trac Wiki Style π it's from the User Contributed Perl Documentation section, iykyk.
πΈ SYNOPSIS πΈ
use Text::Trac;
my $parser = Text::Trac->new(
trac_url => 'http://trac.mizzy.org/public/',
disable_links => [ qw( changeset ticket ) ],
);
$parser->parse($text);
print $parser->html;
like, that's the whole vibe. you make a parser, you feed it text, you get html. iconic. π
π¦ DESCRIPTION π¦
Text::Trac parses text that's written in Trac WikiFormatting and converts it into html format. that's it, that's the girl. no cap. β¨
π METHODS π
π new
Constructs a Text::Trac object. main character energy fr fr.
Available arguments are:
trac_url
Base URL for TracLinks. Default is /. π
You can specify each type of URL individually. Available URLs are:
trac_attachment_urltrac_changeset_urltrac_log_urltrac_milestone_urltrac_report_urltrac_source_urltrac_ticket_urltrac_wiki_url
disable_links
Specify the TracLink types you want to disable. π₯ All types are enabled if you don't specify this option. (default behaviour = everything on, periodt.)
my $parser = Text::Trac->new(
disable_links => [ qw( changeset ticket ) ],
);
enable_links
Specify the TracLink types you want to enable. Other types are disabled. π«Ά
β οΈ bestie you literally cannot use bothdisable_linksandenable_linksat once. pick a lane. π
my $parser = Text::Trac->new(
enable_links => [ qw( changeset ticket ) ],
);
π parse
Parses text and converts it to html format. the actual moment. β¨
π process
An alias of the parse method. same girl, different name. π
π html
Return converted html string. π
π SEE ALSO π
Text::Hatena- Trac Guide <https://trac.edgewall.org/wiki/TracGuide>
- Trac WikiFormatting <https://trac.edgewall.org/wiki/WikiFormatting>
π«Ά AUTHORS π«Ά
- Gosuke Miyashita, "<gosukenator at gmail.com>"
- Hideaki Tanaka, "<drawn.boy at gmail.com)>"
π BUGS π
Please report any bugs or feature requests to bug-text-trac at rt.cpan.org, or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Text-Trac>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. π (yes literally, that's the promise, no cap.)
π SUPPORT π
You can find documentation for this module with the perldoc command.
perldoc Text::Trac
You can also look for information at:
- AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Text-Trac>
- CPAN Ratings
<http://cpanratings.perl.org/d/Text-Trac>
- RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Text-Trac>
- Search CPAN
<http://search.cpan.org/dist/Text-Trac>
π COPYRIGHT & LICENSE π
Copyright 2006 Gosuke Miyashita, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay. π
and that's the whole page bestie π this was perl v5.36.0, dated 2022-12-12, and it's the Text::Trac(3pm) manual page. go forth and convert ur wiki text. β¨π¦πΈ
π¦ where this page comes from
- debian bookworm: libtext-trac-perl 0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtext-trac-perl 0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtext-trac-perl 0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtext-trac-perl 0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtext-trac-perl 0.24-2 Β· 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