struct Wikicr::Markdown

Included Modules

Defined in:

lib/wikimd/markdown.cr
lib/wikimd/render.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(text : String, context : Wikicr::Page, index : Wikicr::Page::Index) #

[View source]

Class Method Detail

def self.to_html(input : String, context : Page, index : Page::Index) : String #
Page::Markdown.to_html("Test of [[internal-link]]", current_page, index_of_internal_links)

[View source]
def self.to_markdown(input : String, context : Page, index : Page::Index) : String #

[View source]

Instance Method Detail

def build : String #

Build a new String which render a valid markdown from the wikimd


[View source]
def context : Page #

[View source]
def context=(context : Page) #

[View source]
def index : Page::Index #

[View source]
def index=(index : Page::Index) #

[View source]
def text : String #

[View source]
def text=(text : String) #

[View source]