Estevao Soares dos Santos
187123fed5
release 1.8.5
2017-12-10 19:13:26 +00:00
Estevao Soares dos Santos
63d949f731
feat(metadata): add support for embedded metadata
...
A simple metadata parser can be useful in markdown documents.
This commit introduces the feature, with the following syntax:
--- or ««« at tstart of the document,
(optionally) followed by a alphanumeric format identifier
followed by key value pairs separated by a colon and a space
followed by --- or ÂÂÂ
Also, adds methods for retrieving the parsed metadata, namely:
getMetadata() and getMetadataFormat
Closes #260
2017-12-10 07:15:09 +00:00
Estevao Soares dos Santos
a8427c9423
feat(completeHTMLOutput): add option to output a complete HTML document
2017-12-10 04:49:24 +00:00
Estevao Soares dos Santos
4ef4c5e674
fix(tables): raw html inside code tags in tables no longer breaks tables
...
Under certains conditions, raw html inside code tags in tables would break
table parsing. This commit fixes that.
Closes #471
2017-12-05 01:13:11 +00:00
Estevao Soares dos Santos
d6203320aa
test: add issue 467 test
2017-11-28 03:07:28 +00:00
Estevao Soares dos Santos
0c933a01f9
fix(tables): pipe character in code spans no longer breaks table
...
A code span with a pipe character no longer incorrectly breaks the cell table.
Closes #465
2017-11-23 05:39:53 +00:00
Estevao Soares dos Santos
f4f63c5c39
fix(spanGamut): code spans are hashed after parsing
...
Code spans are now hashed after parsing which means extensions
that listen to spanGamut events no longer need to worry about
escaping "custom" magic chars inside code spans.
Closes #464
2017-11-23 05:18:20 +00:00
Estevao Soares dos Santos
21194c8a03
fix(literalMidWordAsterisks): no longer treats colon as alphanumeric char
...
Closes #461
2017-11-17 15:23:23 +00:00
Estevao Soares dos Santos
dd7efb5a8a
test: small test refactoring
2017-11-16 18:34:02 +00:00
Estevao Soares dos Santos
11936ecb77
fix(openLinksInNewWindow): hash links are not affected by the option
...
Closes #457
2017-11-11 13:19:19 +00:00
Estevao Soares dos Santos
c956ede4e7
fix(fenced codeblocks): add tilde as fenced code block delimiter
...
Closes #456
2017-11-11 12:29:36 +00:00
Estevao Soares dos Santos
25f1978666
feat(ellipsis): add auto-ellipsis support
...
Three dots `...` are now converted automatically into an ellipsis
2017-10-24 17:06:08 +01:00
Estevao Soares dos Santos
084b819b14
feat(underline): add EXPERIMENTAL support for underline
...
Syntax is:
```
__double underscores__
or
___triple unserscores___
```
Keep in mind that, with this option enabled, underscore no longer
parses as `<em>` or `<strong>`
Closes #450
2017-10-24 16:46:40 +01:00
Estevao Soares dos Santos
9cdc35e705
feat(ol start num): add support for defining the first num of ol
...
Implement support for starting ordered lists at an arbitrary number
Closes #377
BREAKING CHANGE: Since showdown now supports starting ordered lists
at an arbitrary number, list output may differ.
2017-10-24 15:15:56 +01:00
Estevao Soares dos Santos
5b8f1d312f
feat(emoji): add emoji support
...
Add unicode emoji support to showdown. To enable this feature,
use `emoji: true` option. A list of supported emojis is
available here: https://github.com/showdownjs/showdown/wiki/Emojis
Closes #448
2017-10-24 13:44:49 +01:00
Estevao Soares dos Santos
61929bb262
fix(autolinks): prevent _ and * to be parsed in links
...
Closes #444
2017-10-24 10:22:13 +01:00
Estevao Soares dos Santos
66bdd21312
fix(tables): trailing spaces no longer prevent table parsing
...
If there were a trailing space following the closing | of a single column
table, the table does not get rendered. This fixes the issue.
Closes #442
2017-10-06 12:52:20 +01:00
Estevao Soares dos Santos
d88b095f05
fix(tables): tables are properly rendered when followed by a single linebreak and a list
...
Closes #443
2017-10-06 12:38:01 +01:00
Estevao Soares dos Santos
3efcd101a2
fix(html-comments): changed regex to precent malformed long comment to freeze showdown
...
Closes #439
2017-10-02 05:18:10 +01:00
Estevao Soares dos Santos
8c593a4f11
feat(base64-wrapping): support for wrapping base64 strings
...
Wrapping base64 strings, which are usually extremely long lines of text, is now supported.
Newlines can be added arbitrarily, as long as they appear after the comma (,) character.
Closes #429
2017-09-08 20:46:01 +01:00
Estevao Soares dos Santos
ff26c08904
feat(rawPrefixHeaderId): add option to prevent showdown from modifying the prefix
...
Setting this option to true will prevent showdown from modifying the
prefix. This might result in malformed IDs (if, for instance, the " char is
used in the prefix). Has no effect if prefixHeaderId is set to false.
Closes #409
2017-08-06 18:19:46 +01:00
Estevao Soares dos Santos
1791cf0ebf
feat(rawHeaderId): Remove only spaces, ' and " from generated header ids
...
This option removes only spaces, ' and " from generated Header IDs,
replacing them with dashes. This might generate malformed IDs.
Closes #409
2017-08-06 17:45:04 +01:00
Estevao Soares dos Santos
fef110cccb
Fix(tables): allow for one column table
...
Closes #406
2017-08-05 03:34:49 +01:00
Estevao Soares dos Santos
8f05be7788
fix(literalMidWordAsterisks): fix option no longer treat punctuation as word character
...
Closes #398
2017-08-05 02:52:03 +01:00
Estevao Soares dos Santos
51e46933a4
fix(tablesHeaderId): fix missmatch of option name
...
In code, the option appeared both as 'tableHeaderId' and 'tablesHeaderId',
although only the first form had effect. In documentation was referenced
as 'tablesHeaderId'.
Option is now fixed in code to reflex the documentation and table parser
accepts both forms, with and without an s.
Closes #412
2017-08-04 20:19:15 +01:00
Estevao Soares dos Santos
a2259c063b
fix(lists): fix multi paragraph lists with sublists
...
Paragraphed lists with sublists were being parsed incorrectly due to
workaround realted with simpleLineBreaks. This commit fixes this.
Closes #397
2017-06-07 03:33:20 +01:00
Estevao Soares dos Santos
5a5aff6721
feat(backslashEscapesHTMLTags): backslash escapes HTML tags
...
Add support for HTML tag escaping with backslash
Closes #374
2017-06-02 04:48:53 +01:00
Estevao Soares dos Santos
6566c72cc1
fix(HTML Parser): fix nasty bug where malformed HTML would hang showdown
...
When feeding malformed HTML to showdown, the library would enter an infinite loop,
effectively halting showdown's execution.
Closes #393
2017-06-02 03:29:29 +01:00
Marinin Tim
94c570a9d8
feat(customizeHeaderId): add option for customizing header ids
...
It’s useful for non-Latin texts, where header might be, for example, in Russian, but user wants id to be in English. This feature allows user to set id for header manually, using curly braces:
## Привет, мир {hello-world}
Closes #383
2017-06-01 02:35:42 +01:00
Estevao Soares dos Santos
30aa18c003
fix(url parsing): fix url edge case parsing in images and links
...
Allow some edge cases to parse correctly. Example:
`![img](.images/cat(1).png)`,
`![img](<.image(1)/cat(1).png>)`,
`[link](<>)`
2017-05-30 04:11:00 +01:00
Estevao Soares dos Santos
230f443442
test: add tests for issue #390
2017-05-28 17:30:18 +01:00
Estevao Soares dos Santos
6fbc072c2c
fix(HTML parsing): fix HTML parsing issues with nested tags
...
Deeply nested HTML tags and recursive tags broke the HTML parser.
Closes #357 , closes #387
2017-05-28 17:20:07 +01:00
Estevao Soares dos Santos
813f832160
fix(openLinksInNewWindow): encode _ to prevent clash with em
...
Closes #379
2017-04-25 22:13:27 +01:00
Estevao Soares dos Santos
71acff5757
fix(excludeTrailingPunctuationFromURLs): fix weird character when this option with simplifiedAutoLinks
...
Closes #378
2017-04-23 02:14:56 +01:00
Estevao Soares dos Santos
1bca88f8fa
test: add several testcases
2017-04-23 02:04:13 +01:00
Estevao Soares dos Santos
f3dff7b0cf
Merge branch 'master' into develop
2017-04-23 01:59:53 +01:00
Miguel Laginha
5bec8f9e9a
feat(literalMidWordAsterisks): add option for mid word asterisks
...
Implements feature similar to ignoring midword underscores but with asterisks. The main use case is ignoring cursing.
2017-04-05 16:25:20 +01:00
Estevao Soares dos Santos
50235d6951
feat(openLinksInNewWindow): add option to open all links in a new window
...
Closes #362 , #337 , #249 , #247 , #222
2017-03-31 00:25:40 +01:00
Estevao Soares dos Santos
0c6c07b341
feat(images): add support for image's implicit reference syntax
...
Closes #366
2017-03-30 23:35:28 +01:00
Estevao Soares dos Santos
f1eab2a7f2
Merge branch 'master' into develop
2017-03-30 23:17:56 +01:00
simo
3e22fc658c
Reset options before switching to a flavor ( #365 )
...
fix(flavors): reset options before switching to a flavor
2017-03-30 23:17:10 +01:00
Estevao Soares dos Santos
fa47938b81
blame: last commit introduced a bug
2017-03-15 02:49:20 +00:00
Estevao Soares dos Santos
fa35fd5e7e
fix(excludeTrailingPunctuationFromURL): add comma to punctuation list
...
Closes #354
2017-03-09 00:43:45 +00:00
Estevão Soares dos Santos
c6ac36d9f2
test(appveyor): add appveyor testing
...
Add testing on windows environment
2017-03-05 05:08:52 +00:00
Estevão Soares dos Santos
93fecc8650
chore(travis): add support for node 0.12 in travis
2017-03-05 02:49:13 +00:00
Estevao Soares dos Santos
5c50675cca
fix(simpleAutoLinks): URLs with emphasis/strikethrough are parsed
...
correctly
When a user enters a URL with emphasis or strikethrough, the html output
were incorrect.
Now, URLs inside emphasis or strikethrough are parsed corerctly
Closes #347
2017-02-26 19:13:52 +00:00
Estevao Soares dos Santos
1ebc1959dd
fix(tables): pipe char can now be escaped
...
Pipe character is now treated as a special markdown char,
which makes it possible to escape it.
Closes #345
2017-02-21 14:13:12 +00:00
Estevao Soares dos Santos
605d8b7b05
fix(encodeEmail): now produces valid emails
...
Closes #340
2017-02-06 06:50:52 +00:00
Estevao Soares dos Santos
f641a7de90
fix(prefixHeaderId): make prefixHeaderId
string be parsed along the generated id
...
If an invalid prefix was passed (a string with spaces, for instance),
the string would be added as is. This ould generate invalid ids.
Also, this makes `prefixHeaderId` option play nicely with `ghCompatibleHeaderId`, since they will
follow the same escaping rules when both options are enabled.
2017-02-06 05:37:49 +00:00
Estevao Soares dos Santos
41cb3f6b7f
fix(hashCodeTags): escape code tags
...
Previously, `<code>` tags were not escaped. This was counter intuitive since ´<pre><code>` tags
were being escaped. Now both pre code and code are escaped.
Closes #339
2017-02-06 05:09:52 +00:00