Ciconia / A New Markdown Parser for #PHP

class InlineStyleExtension implements ExtensionInterface, RendererAwareInterface

Original source code from GitHub Flavored Markdown

Copyright 2013 GitHub Inc. https://help.github.com/articles/github-flavored-markdown

Methods

void register(Markdown $markdown)

Adds listeners to EventEmitter

processMultipleUnderScore(Text $text)

Multiple underscores in words

processStrikeThrough(Text $text)

Strike-through ~~word~~ to <del>word</del>

getName()

Returns the name of the extension

Details

at line 33 public void register(Markdown $markdown)

Adds listeners to EventEmitter

Parameters

Markdown $markdown

Return Value

void

at line 47 public processMultipleUnderScore(Text $text)

Multiple underscores in words

It is not reasonable to italicize just part of a word, especially when you're dealing with code and names often appear with multiple underscores. Therefore, GFM ignores multiple underscores in words.

Parameters

Text $text

at line 79 public processStrikeThrough(Text $text)

Strike-through ~~word~~ to <del>word</del>

Parameters

Text $text

at line 90 public getName()

Returns the name of the extension