Markdown

class Markdown

Overview

Markdown library parses Markdown text. It supports rendering to HTML text.

Usage:

require "markdown"

text = "## This is title \n This is a [link](http://crystal-lang.org)"

Markdown.to_html(text)
# => <h2>This is title</h2>
# => <p>This is a <a href="http://crystal-lang.org" rel="external nofollow" target="_blank" >link</a></p>

NOTE This library is in its early stage. Many features are still in development.

Defined in:

markdown.cr

Class Method Summary

Class Method Detail

def self.parse(text, renderer)Source

def self.to_html(text) : StringSource

© 2012–2017 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.22.0/Markdown.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部