# phpman > perldoc > HTML::FormatMarkdown

## NAME
    [HTML::FormatMarkdown](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AFormatMarkdown/markdown) - Format HTML as Markdown

## VERSION
    version 2.12

## SYNOPSIS
        use [HTML::FormatMarkdown](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AFormatMarkdown/markdown);

        my $string = [HTML::FormatMarkdown](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AFormatMarkdown/markdown)->format_file(
            'test.html'
        );

        open my $fh, ">", "test.md" or die "$!\n";
        print $fh $string;
        close $fh;

## DESCRIPTION
    [HTML::FormatMarkdown](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AFormatMarkdown/markdown) is a formatter that outputs Markdown.

    [HTML::FormatMarkdown](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AFormatMarkdown/markdown) is built on [HTML::Formatter](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AFormatter/markdown) and documentation for that module applies to
    this - especially "new" in [HTML::Formatter](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AFormatter/markdown), "format_file" in [HTML::Formatter](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AFormatter/markdown) and "format_string"
    in [HTML::Formatter](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AFormatter/markdown).

## INSTALLATION
    See perlmodinstall for information and options on installing Perl modules.

## BUGS AND LIMITATIONS
    You can make new bug reports, and view existing ones, through the web interface at
    <<http://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Format>>.

## AVAILABILITY
    The project homepage is <<https://metacpan.org/release/HTML-Format>>.

    The latest version of this module is available from the Comprehensive Perl Archive Network
    (CPAN). Visit <<http://www.perl.com/CPAN/>> to find a CPAN site near you, or see
    <<https://metacpan.org/module/[HTML::Format](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AFormat/markdown)/>>.

## AUTHORS
    *   Nigel Metheringham <<nigelm@cpan.org>>

    *   Sean M Burke <<sburke@cpan.org>>

    *   Gisle Aas <<gisle@ActiveState.com>>

## COPYRIGHT AND LICENSE
    This software is copyright (c) 2015 by Nigel Metheringham, 2002-2005 Sean M Burke, 1999-2002
    Gisle Aas.

    This is free software; you can redistribute it and/or modify it under the same terms as the Perl
    5 programming language system itself.

