Commit Graph

525 Commits

Author SHA1 Message Date
Estevao Soares dos Santos
e4c43ea433 refactor(italicsAndBold): refactoring of italicsAndBold regexes for speed 2017-01-29 22:29:21 +00:00
Estevao Soares dos Santos
062e465902 chore: cleanup code and comments 2017-01-29 19:50:21 +00:00
Estevao Soares dos Santos
169cbe8e2d fix(strikethrough): fix striketrough being wrongly parsed inside codeSpans 2017-01-29 19:38:45 +00:00
Estevao Soares dos Santos
4243a313fd fix(codeSpans): add - and = to escaped chars inside code spans 2017-01-29 19:33:54 +00:00
Estevao Soares dos Santos
7d63a3e635 feat(events): add events to all subparsers
This commit adds events to all subparsers (that were previously not being watched).
2017-01-29 19:28:30 +00:00
Estevao Soares dos Santos
fd014747a1 release 1.6.2 2017-01-29 02:36:51 +00:00
Estevao Soares dos Santos
51cc7c430f test: add some strikethrough tests 2017-01-29 00:26:29 +00:00
Estevao Soares dos Santos
10fb1cf451 refactor: use ¨ instead of ~ as escape character 2017-01-29 00:07:19 +00:00
Estevao Soares dos Santos
24d47d7c68 fix(strikethrough): allow escapinging tilde char
Since tilde is now used as a magic markdown character,
in strikethrough syntax, we need to enable escaping it.

Closes #331
2017-01-28 23:54:28 +00:00
Estevao Soares dos Santos
a4c24c9805 feat(ghMentionsLink): add ability to define the generated url in @mentions
This option enables users to define the generated links in @mentions.
For instance,  with ghMentionsOption set to `//mysite.com/{u}/profile`
this text
`@tivie`
will result in this link
`<a href="//mysite.com/tivie/profile">@tivie</a>`
2017-01-28 04:28:50 +00:00
Estevao Soares dos Santos
dbf876b6cb test: add test for nested gh codeblocks 2017-01-28 03:59:27 +00:00
Estevao Soares dos Santos
bfcc0e44f0 fix(escapeSpecialCharsWithinTagAttributes): add ~ and = to escaped chars 2017-01-28 03:02:27 +00:00
Estevao Soares dos Santos
ed6a687013 bump package.json 2017-01-28 02:53:25 +00:00
Estevao Soares dos Santos
4b301d27c6 release 1.6.1 2017-01-28 02:50:12 +00:00
Estevao Soares dos Santos
0c9ebd4e24 refactor: some minor performance improvements 2017-01-28 02:46:34 +00:00
Estevao Soares dos Santos
4613260cdf refactor: create horizontal rules own subParser 2017-01-28 02:17:19 +00:00
Estevao Soares dos Santos
ef7d0ec7a9 test: use new performance test file 2017-01-28 02:04:50 +00:00
Estevao Soares dos Santos
4b53d3707b test: add newline at end of test files 2017-01-28 01:46:33 +00:00
Estevao Soares dos Santos
d3ebbc128e chore: add newline at end of test files 2017-01-28 01:34:38 +00:00
Estevao Soares dos Santos
fea64bdd3c test: add tests for helper functions
Closes #167
2017-01-28 01:19:07 +00:00
Estevao Soares dos Santos
32a4cee258 chore: update chai 2017-01-27 22:07:55 +00:00
Estevao Soares dos Santos
0b32a95efd chore(performance): update performance testing 2017-01-27 20:53:47 +00:00
Estevao Soares dos Santos
5190b6a41f fix(simplifiedAutoLink): fix missing spaces before and after email addresses
Space char before and after the linked email address is no longer dropped
with "simplifiedAutoLink" option enabled.

Closes #330
2017-01-27 19:25:46 +00:00
Estevao Soares dos Santos
90c52b83e7 feat(encodeEmail): add option to enable/disable mail obfuscation
Prior to version 1.6.1, emails would always be obfuscated through dec and hex encoding.
This option makes it possible to disable this.
2017-01-27 19:03:37 +00:00
Estevao Soares dos Santos
e3ea1450cc chore: fix changelog 2017-01-09 02:40:30 +00:00
Estevao Soares dos Santos
b6513fadb9 release 1.6.0 2017-01-09 02:38:24 +00:00
Estevao Soares dos Santos
f3b86f06cc feat(CLI): add -q (quiet) and -m (mute) mode to CLI
-q supresses all normal messages from the output, but still reports errors.
-m mutes all messages, even errors.
2017-01-09 02:26:24 +00:00
Estevao Soares dos Santos
4d78633c4d refactor(CLI): bump to include breaking change notice
BREAKING CHANGE:

CLI tool now uses the same option defaults as showdown main library. This mean
the default flavor is vanilla and ghCodeBlocks options is enabled by default.

To update, add `--ghCodeBlocks="false"` to the command.
2017-01-09 02:23:09 +00:00
Estevao Soares dos Santos
e3521bd8fa refactor(CLI): refactoring of CLI code 2017-01-09 02:08:23 +00:00
Estevao Soares dos Santos
2d6cd1e908 feat(CLI:flavor): add flavor option to CLI
Add the option to pass a flavor preset to CLI. Ex:
`showdown makehtml --flavor="github"`
2017-01-08 20:02:42 +00:00
Estevao Soares dos Santos
3b3e9e7fbe bump package.json 2017-01-08 19:10:03 +00:00
Estevao Soares dos Santos
0eaf1050c7 feat(getFlavor): add getFlavor method to showdown and Converter
With this new method, you can check what type of base flavor showdown is currently set
to run as.
2017-01-08 19:09:12 +00:00
Estevao Soares dos Santos
a58674e597 chore: improve ghMentions 2017-01-06 04:58:28 +00:00
Estevao Soares dos Santos
f2671c0cc7 feat(ghMentions): add support for github's @mentions
Closes #51
2017-01-06 04:33:12 +00:00
Estevao Soares dos Santos
561dc5f155 fix(IE8): fix for IE8 error on using isUndefined function
Using isUndefined on console object in IE8 will throw an error.
This reverts to using `typeof console === 'undefined'.

Closes #280
2017-01-06 04:00:30 +00:00
Estevao Soares dos Santos
b1c458a762 fix(simpleLineBreaks): fix simpleLineBreaks option not working with non-ASCII chars and markdown delimiters
The option simpleLineBreaks was not working with non-ASCII characters such as chinese characters and
when lines started or ended with markdown delimiters such as `*` or `~`

Closes #318, #323
2017-01-06 03:51:12 +00:00
Estevao Soares dos Santos
de7c37eaea fix(options): fix ghCompatibleHeaderId that was set as string instead of boolean 2017-01-06 02:42:47 +00:00
Estevao Soares dos Santos
4aa2118a64 chore: bump package.json version 2016-12-30 19:47:22 +00:00
Estevao Soares dos Santos
d499feb2aa fix(ghCompatibleHeaderId): improve the number of removed chars 2016-12-30 19:46:46 +00:00
Estevao Soares dos Santos
150a5cd3ff chore: minor documentation fix 2016-12-30 19:26:00 +00:00
Estevao Soares dos Santos
94419ac225 release 1.5.5 2016-12-30 19:23:27 +00:00
Estevao Soares dos Santos
3102615ec2 fix(ghCompatibleHeaderId): add % as an escaped char 2016-12-30 19:21:03 +00:00
Estevao Soares dos Santos
db97a90d5b feat(ghCompatibleHeaderId): generate header ids compatible with github
style

Github replaces spaces with dashes and removes a bunch of characters
from generated header ids ][&~$!@#*()=:/,;?+'.\
This feature implements this.

Closes # 320, closes #321
2016-12-30 19:01:44 +00:00
Estevao Soares dos Santos
08846c4519 chore: .jscs.json small fix 2016-12-30 18:03:26 +00:00
Estevao Soares dos Santos
bba9722ad4 test: add more performance tests 2016-12-23 10:07:14 +00:00
Estevao Soares dos Santos
4d762989f8 chore: bump package.json version 2016-12-23 09:32:45 +00:00
Estevao Soares dos Santos
43ff0b643e test: add performance tests 2016-12-23 09:29:58 +00:00
Estevao Soares dos Santos
60a9467e3d release 1.5.4 2016-12-21 09:05:52 +00:00
Estevao Soares dos Santos
ed4c33fe4e fix(simpleLineBreaks): fix simpleLineBreak option breaking lists html
When option was enabled, `<br />` tags where being added wrongfully
between `<li>` tags, which resulted in malformed html. This commit
prevents this behavior.

Closes #316
2016-12-20 23:57:10 +00:00
Estevao Soares dos Santos
113f5f64b1 fix(horizontal rule): revert backwards incompatibility change
Horizontal rule syntax allows up to 3 spaces preceding dashes or
asterisks. Commit da8fb53 wrongfully removed that. This commit
puts that back.

Closes #317
2016-12-20 22:08:33 +00:00