* startrefactoring the event system
* refactor: blockquotes, code blocks and links refactored
* refactor codeblock to new event system
* refactor subparser until ghcode to new events
* finish adating ghcodeblock to new event
* add headings to new events
* add image to event system
* add emphasisAndStrong to event system
* fix wrong event name in emphasisAndStrong onEnd event
* spanGamut and build
* showdown.helper.event refactored to showdown.Event
* partial
* add links
* add metadata
* add strikethrough and table
* build
* add underline
* add unescapeSpecialChars
* small refactoring
* remove old tables parser
* add lists
* add simple event trigger tests
* build
* fix browserstack
* fix browserstack
* remove testing for ie11 and bumped firefox min version to 45
* fixes and closes#920
* build
* feat(makemarkdown.table): support non-strict tables
change to support non strict html tables.
currently html tables require both 'thead' and 'tbody' to be set.
since there are many tables out there that dont meet these requirements,
i added support for most common tables. all of the following tables will now
work (the last one, is the only version that is currently working):
<table><tr><td>t 0 - missing thead/tbody</td></tr></table>
<table><tr><td>t 1 - missing thead/tbody</td></tr><tr><td>t 1 body</td></tr></table>
<table><thead><tr><th>t 2 - thead only</th></tr></thead></table>
<table><thead><tr><td>t 3 - thead with td</td></tr></thead></table>
<table><tbody><tr><td>t 4 - tbody only</td></tr></tbody></table>
<table><thead><tr><th>t 5 - both thead and tbody</th></tr></thead><tbody><tr><td>t 5</td></tr></tbody></table>
i thought this feature should be made optional in case you only want
to support fully compliant tables. but then i realized, that the options
are only passed to the markdown subparsers, not the html ones.
and since this does not break anything (all tests pass), its ok, i guess...
Closes#687
* refactor: code refactor and added tests
Co-authored-by: Estevão Soares dos Santos <estevao.santos@gmail.com>
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
Currently, only adds the class `task-list-item-complete` to completed tasks items in GFM tasklists.
But in the future, each time a css class is deemed to be necessary, should be added under this umbrella
option.
Closes#540
The line with the opening code fence may optionally contain some text following the code fence (the info string); this is trimmed of leading and trailing whitespace and can contain multiple words (but not newlines).
Closes#856
This is a major refactor of the links subparser, previously known as anchors subparser.
Closes#355, #534
BREAKING CHANGE: `excludeTrailingPunctuationFromURLs` option was removed. This is now the default behavior
In text, headings only require a single linebreak to be treated as such.
However, in lists, they would require a double linebreak.
Now, the behavior in lists and text is consistent, requiring only a single
linebreak.
Closes#495