Giter Club home page Giter Club logo

text-markdown-hoedown's Introduction

Build Status

NAME

Text::Markdown::Hoedown - hoedown for Perl5

SYNOPSIS

use Text::Markdown::Hoedown;

print markdown(<<'...');
# foo

bar

  * hoge
  * fuga
...

DESCRIPTION

Text::Markdown::Hoedown is binding library for hoedown.

hoedown is a forking project from sundown.

FUNCTIONS

  • my $out = markdown($src :Str, %options) :Str

    Rendering markdown.

    Options are following:

    • toc_nesting_lvl

      Nesting levels for TOC generation.

      (Default: 99)

    • extensions

      This is bit flag. You can use the flags by '|' operator. Values are following:

        enum hoedown_extensions {
            HOEDOWN_EXT_NO_INTRA_EMPHASIS = (1 << 0),
            HOEDOWN_EXT_TABLES = (1 << 1),
            HOEDOWN_EXT_FENCED_CODE = (1 << 2),
            HOEDOWN_EXT_AUTOLINK = (1 << 3),
            HOEDOWN_EXT_STRIKETHROUGH = (1 << 4),
            HOEDOWN_EXT_UNDERLINE = (1 << 5),
            HOEDOWN_EXT_SPACE_HEADERS = (1 << 6),
            HOEDOWN_EXT_SUPERSCRIPT = (1 << 7),
            HOEDOWN_EXT_LAX_SPACING = (1 << 8),
            HOEDOWN_EXT_DISABLE_INDENTED_CODE = (1 << 9),
            HOEDOWN_EXT_HIGHLIGHT = (1 << 10),
            HOEDOWN_EXT_FOOTNOTES = (1 << 11),
            HOEDOWN_EXT_QUOTE = (1 << 12)
        };
      
    • html_options

      This is bit flag. You can use the flags by '|' operator. Values are following:

        typedef enum {
            HOEDOWN_HTML_SKIP_HTML = (1 << 0),
            HOEDOWN_HTML_SKIP_STYLE = (1 << 1),
            HOEDOWN_HTML_SKIP_IMAGES = (1 << 2),
            HOEDOWN_HTML_SKIP_LINKS = (1 << 3),
            HOEDOWN_HTML_EXPAND_TABS = (1 << 4),
            HOEDOWN_HTML_SAFELINK = (1 << 5),
            HOEDOWN_HTML_TOC = (1 << 6),
            HOEDOWN_HTML_HARD_WRAP = (1 << 7),
            HOEDOWN_HTML_USE_XHTML = (1 << 8),
            HOEDOWN_HTML_ESCAPE = (1 << 9),
            HOEDOWN_HTML_PRETTIFY = (1 << 10)
        } hoedown_html_render_mode;
      
    • max_nesting

      I don't know what this do.

  • markdown_toc($src:Str, %opts) :Str

    Generate TOC HTML from $str.

    Options are following:

    • nesting_level

      Maximum nesting level for TOC.

    • extensions

      Same as above.

    • max_nesting

      Same as above.

    All HOEDOWN_* constants are exported by default.

TODO

  • Document about low level APIs

HACKING

hoedown/ directory is managed by git subtree.

You can pull the modifications from upstream by following command:

 git subtree pull --prefix=hoedown [email protected]:hoedown/hoedown.git master

LICENSE

Copyright (C) tokuhirom.

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

AUTHOR

tokuhirom [email protected]

text-markdown-hoedown's People

Contributors

andre-d avatar bnoordhuis avatar brandonc avatar brief avatar charsbar avatar chobie avatar cweider avatar gregleaver avatar jbergstroem avatar jjallaire avatar jnovinger avatar kjk avatar mattr- avatar mattsta avatar mcansky avatar mildsunrise avatar mmorearty avatar nono avatar rick avatar rmm5t avatar robin850 avatar samb avatar soffes avatar spladug avatar srombauts avatar syohex avatar t-yuki avatar tokuhirom avatar txdv avatar vmg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.