Text::Trac(3pm)

πŸ“¦
version 0.24 Β· 2 versions
  • 0.24 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.24 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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_url
  • trac_changeset_url
  • trac_log_url
  • trac_milestone_url
  • trac_report_url
  • trac_source_url
  • trac_ticket_url
  • trac_wiki_url

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 ) ],
);

Specify the TracLink types you want to enable. Other types are disabled. 🫢

⚠️ bestie you literally cannot use both disable_links and enable_links at 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 🌈


🫢 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 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