class Markdown::File
- Markdown::File
- Reference
- Object
Overview
A class representing a Markdown file
Direct Known Subclasses
Defined in:
markdown.crConstructors
-
.new(sources : Hash(String, String), base : Path)
Initialize the post with proper data
Class Method Summary
Instance Method Summary
- #<=>(other : File)
- #_replace_shortcodes(text : String) : String
-
#breadcrumbs(lang = nil)
What to show as breadcrumbs for this post
- #date : Time | Nil
-
#dependencies : Array(String)
List of all files and kv store items this post uses
-
#full_shortcodes_list(text)
Parse shortcodes in the text recursively
- #html(lang = nil)
- #link(lang = nil)
-
#load(lang = nil) : Nil
Load the post from disk (for current language only)
- #metadata(lang = nil)
- #output(lang = nil)
-
#rendered(lang = nil)
Render the markdown HTML into the right template for the fragment
- #replace_shortcodes(lang)
- #shortcodes(lang = nil)
- #source(lang = nil)
- #summary(lang = nil)
- #taxonomies
-
#template(lang = nil)
Path for the
Templates::Template
this post should be rendered with - #text(lang = nil)
- #title(lang = nil)
- #to_s(io)
- #toc(lang = nil)
-
#value(lang = nil)
Return a value Crinja can use in templates