contentbox.modules.contentbox-deps.modules.cbmarkdown.models

Class Processor

lucee.Component
    extended by contentbox.modules.contentbox-deps.modules.cbmarkdown.models.Processor

Ortus Markdown Module Copyright 2013 Ortus Solutions, Corp www.ortussolutions.com --- Convert markdown to HTML via the MarkdownJ Java library

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
  • author : Luis Majano
  •  
    Property Summary
    type property default serializable required
    any emojiService


    • access = public
    • returntype = any
    • inject = EmojiService@cbemoji
    true false
    any parser
          The internal parser.

    • access = public
    • returntype = any
    true false
    any renderer
          The internal renderer.

    • access = public
    • returntype = any
    true false
    Constructor Summary
    init(any javaloader, struct options)
          Constructor.
    Method Summary
    private any createOptions(struct options)
         Create a parser options object for the FlexMark parser.
    private struct defaultOptions()
         Return the default parser options to merge with the user's options.
    string getEmojiService()
    string getParser()
    string getRenderer()
    any setEmojiService(any emojiService)
    any setParser(any parser)
    any setRenderer(any renderer)
    any toHTML(any txt)
         Convert markdown to HTML.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any javaloader, struct options)

    Constructor

    Parameters:
    javaloader - The javaloader class
    options - The module options

    Property Detail

    emojiService

    property any emojiService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - EmojiService@cbemoji
    serializable - true

    parser

    property any parser

    The internal parser

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    renderer

    property any renderer

    The internal renderer

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    Method Detail

    createOptions

    private any createOptions(struct options)

    Create a parser options object for the FlexMark parser.

    Parameters:
    options - A struct of options for the parser.
    Returns:
    A parser options object.

    defaultOptions

    private struct defaultOptions()

    Return the default parser options to merge with the user's options.

    Returns:
    The default parser options struct.

    getEmojiService

    public string getEmojiService()


    getParser

    public string getParser()


    getRenderer

    public string getRenderer()


    setEmojiService

    public any setEmojiService(any emojiService)

    Parameters:
    emojiService

    setParser

    public any setParser(any parser)

    Parameters:
    parser

    setRenderer

    public any setRenderer(any renderer)

    Parameters:
    renderer

    toHTML

    public any toHTML(any txt)

    Convert markdown to HTML

    Parameters:
    txt - The markdown text to convert