class KalimahApps / Daleel / CodeHighlighter / FencedCodeRenderer

FencedCodeRenderer

Render a FencedCode block to HTML.

Implements

  • League\...\NodeRendererInterface

Properties

protected

$highlighter
  • CodeHighlighter
  • The highlighter

    Default: null
    protected

    $base_renderer
  • BaseFencedCodeRenderer
  • The base renderer

    Default: null

    Methods

    public

    __construct ( ) : void

    Constructor.

    public

    render ( League\...\Node $node , League\...\ChildNodeRendererInterface $child_renderer ) : string

    Render a FencedCode block to HTML.

    Parameters

    • $node League\...\Node
      The node to render
    • $child_renderer League\...\ChildNodeRendererInterface
      The child renderer to use
    protected

    getSpecifiedLanguage ( League\...\FencedCode $block ) : ?string

    Get the language specified in the info string.

    Parameters

    • $block League\...\FencedCode
      The FencedCode block to get the language from