nitc :: CmdMarkdownProcessor :: _parser
Parser used to process doc commandsnitc :: CmdMarkdownProcessor :: parser
Parser used to process doc commandsnitc :: CmdMarkdownProcessor :: parser=
Parser used to process doc commandsnitc :: CmdMarkdownProcessor :: render_wikilink
Render a wikilinknitc $ CmdMarkdownProcessor :: SELF
Type of this instance, automatically specialized in every classmarkdown :: MarkdownProcessor :: DECORATOR
Kind of decorator used for decoration.markdown :: MarkdownProcessor :: _buffer_stack
Stacked buffers.markdown :: MarkdownProcessor :: _current_block
Currently processed block.markdown :: MarkdownProcessor :: _current_line
Currently processed line.markdown :: MarkdownProcessor :: _current_pos
Currently processed position incurrent_text
.
markdown :: MarkdownProcessor :: _current_text
Currently processed text.markdown :: MarkdownProcessor :: _decorator
Decorator used for output.markdown :: MarkdownProcessor :: _ext_mode
Work in extended mode (default).markdown :: MarkdownProcessor :: _in_list
Is the current recursion in list mode?markdown :: MarkdownProcessor :: _last_link_ref
Last encountered link ref (for multiline definitions)markdown :: MarkdownProcessor :: _link_refs
Known link refsmarkdown :: MarkdownProcessor :: _loc_stack
Stacked locations.markdown :: MarkdownProcessor :: _no_location
Disable attaching MDLocation to Tokensnitc :: CmdMarkdownProcessor :: _parser
Parser used to process doc commandsmarkdown :: MarkdownProcessor :: add_link_ref
Add a link ref to the listmarkdown :: MarkdownProcessor :: buffer_stack
Stacked buffers.markdown :: MarkdownProcessor :: buffer_stack=
Stacked buffers.markdown :: MarkdownProcessor :: check_link_ref
Check if line is a block link definition.core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown :: MarkdownProcessor :: current_block
Currently processed block.markdown :: MarkdownProcessor :: current_block=
Currently processed block.markdown :: MarkdownProcessor :: current_buffer
Current output buffer.markdown :: MarkdownProcessor :: current_line
Currently processed line.markdown :: MarkdownProcessor :: current_line=
Currently processed line.markdown :: MarkdownProcessor :: current_loc
Current output buffer.markdown :: MarkdownProcessor :: current_pos
Currently processed position incurrent_text
.
markdown :: MarkdownProcessor :: current_pos=
Currently processed position incurrent_text
.
markdown :: MarkdownProcessor :: current_text
Currently processed text.markdown :: MarkdownProcessor :: current_text=
Currently processed text.markdown :: MarkdownProcessor :: decorator=
Decorator used for output.core :: Object :: defaultinit
markdown :: MarkdownProcessor :: emit_text
Transform and emit mardown textmarkdown :: MarkdownProcessor :: emit_text_until
Transform and emit mardown text starting atstart
and
markdown :: MarkdownProcessor :: ext_mode=
Work in extended mode (default).markdown :: MarkdownProcessor :: find_token
Find the position of atoken
in self
.
markdown :: MarkdownProcessor :: in_list
Is the current recursion in list mode?markdown :: MarkdownProcessor :: in_list=
Is the current recursion in list mode?core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
markdown :: MarkdownProcessor :: last_link_ref
Last encountered link ref (for multiline definitions)markdown :: MarkdownProcessor :: last_link_ref=
Last encountered link ref (for multiline definitions)markdown :: MarkdownProcessor :: link_refs=
Known link refsmarkdown :: MarkdownProcessor :: loc_stack
Stacked locations.markdown :: MarkdownProcessor :: loc_stack=
Stacked locations.core :: Object :: native_class_name
The class name of the object in CString format.markdown :: MarkdownProcessor :: no_location
Disable attaching MDLocation to Tokensmarkdown :: MarkdownProcessor :: no_location=
Disable attaching MDLocation to Tokenscore :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: CmdMarkdownProcessor :: parser
Parser used to process doc commandsnitc :: CmdMarkdownProcessor :: parser=
Parser used to process doc commandsmarkdown :: MarkdownProcessor :: push_buffer
Push a new buffer on the stack.markdown :: MarkdownProcessor :: push_loc
Push a new MDLocation on the stack.markdown :: MarkdownProcessor :: read_lines
Splitinput
string into MDLines
and create a parent MDBlock
with it.
nitc :: CmdMarkdownProcessor :: render_wikilink
Render a wikilinkmarkdown :: MarkdownProcessor :: with_decorator
Create a newMarkdownEmitter
using a custom decorator
.
# Custom MarkdownEmitter for commands
class CmdMarkdownProcessor
super MarkdownProcessor
# Parser used to process doc commands
var parser: CommandParser
# Render a wikilink
fun render_wikilink(token: TokenWikiLink, model: Model) do
var link = token.link
if link == null then return
var name = token.name
if name != null then link = "{name} | {link}"
var command = parser.parse(link.write_to_string)
var error = parser.error
if error isa CmdError then
emit_text error.to_html.write_to_string
return
end
if error isa CmdWarning then
emit_text error.to_html.write_to_string
end
add command.as(not null).to_html
end
end
src/doc/templates/html_commands.nit:420,1--446,3