<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">=for html
&lt;p&gt;
&lt;a href="https://travis-ci.org/nwellnhof/perl-commonmark?branch=master"&gt;&lt;img src="https://travis-ci.org/nwellnhof/perl-commonmark.svg?branch=master"&gt;&lt;/a&gt;
&lt;a href="https://coveralls.io/r/nwellnhof/perl-commonmark?branch=master"&gt;&lt;img src="https://coveralls.io/repos/nwellnhof/perl-commonmark/badge.svg?branch=master" alt="Coverage Status"&gt;&lt;/a&gt;
&lt;a href="http://badge.fury.io/pl/CommonMark"&gt;&lt;img src="https://badge.fury.io/pl/CommonMark.svg" alt="CPAN version"&gt;&lt;/a&gt;
&lt;/p&gt;

=head1 Perl bindings for the CommonMark C library

This module is a wrapper around I&lt;libcmark&gt;, the official CommonMark C
library.

=head2 Installation of libcmark

Please note that the I&lt;libcmark&gt; API isn't stable yet. This version of the
Perl bindings is known to work with version
L&lt;0.21.0|https://github.com/jgm/cmark/releases/tag/0.21.0&gt;. But
there's no guarantee that it can be compiled with later versions.
Also note that upgrading libcmark may require recompilation of the Perl
module. For the time being, the version of the Perl bindings is kept in sync
with the lowest supported I&lt;libcmark&gt; version.

    curl -LJO https://github.com/jgm/cmark/archive/0.21.0.tar.gz
    tar xzf cmark-0.21.0.tar.gz
    cd cmark-0.21.0
    make [INSTALL_PREFIX=/prefix]
    make test
    make install

See the I&lt;libcmark&gt; README for details.

=head2 Installation from a CPAN tarball

If I&lt;libcmark&gt; is in a standard location:

    perl Makefile.PL
    make
    make test
    make install

Otherwise:

    perl Makefile.PL \
        INC="-I/prefix/include" \
        LIBS="-L/prefix/lib -lcmark"
    make
    make test
    make install

See the documentation of I&lt;ExtUtils::MakeMaker&gt; for additional options.
The I&lt;PERL_MM_OPT&gt; environment variable is especially useful.

    export PERL_MM_OPT='INC="-I..." LIBS="-L... -lcmark"'

=head2 Build from a repository checkout 

You need I&lt;Dist::Zilla&gt; with the external plugin I&lt;MakeMaker::Awesome&gt;.
Then you can build and test with I&lt;dzil&gt;:

    dzil test
    dzil build

=head2 Copyright

This software is copyright (C) by Nick Wellnhofer.
 
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

</pre></body></html>