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
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
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
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
7f43b79b33
fix(encodeAmpsAndAngles): fix > and < encoding
...
In some circumstances, > and < were not being encoded properly.
Closes #236
2017-02-06 03:28:49 +00:00
Estevao Soares dos Santos
e18be38995
test: add test for simpleLineBreak and pre tags
2017-01-30 18:11:13 +00:00
Estevao Soares dos Santos
0292ae0dcb
fix(literalMidWordUnderscores): Inconsistent behavior of emphasis and strong with literalMidWordUndescores
...
Closes #333
2017-01-29 23:31:52 +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
51cc7c430f
test: add some strikethrough tests
2017-01-29 00:26:29 +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
4b53d3707b
test: add newline at end of test files
2017-01-28 01:46:33 +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
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
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
d499feb2aa
fix(ghCompatibleHeaderId): improve the number of removed chars
2016-12-30 19:46:46 +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
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
5d19877590
feat(requireSpaceBeforeHeadingText): option to make space between #
and header text mandatory
...
Credit: @nikz [Nik Wakelin](https://github.com/nikz )
Closes #277
2016-12-17 06:01:15 +00:00
Estevao Soares dos Santos
d2fc2a0c5c
feature(excludeTrailingPunctuationFromURLs): excludes trailing punctuation from auto linked URLs
...
Closes #266 , #308
2016-12-01 15:25:46 +00:00
Estevao Soares dos Santos
0942b5e87d
feature(simpleLineBreaks): parse linebreaks as <br />
...
This option enables linebreaks to always be treated as `<br />` tags
without needing to add spaces in front of the line, the same way GitHub does.
Closes #206
2016-11-30 18:04:17 +00:00
Estevao Soares dos Santos
0be39bccae
feat(disableForced4SpacesIndentedSublists): option that disables the requirement of indenting nested sublists by 4 spaces
2016-11-11 08:15:24 +00:00
Estevao Soares dos Santos
2b813cd3fb
fix(lists linebreaks): fix lists linebreaks in html output
...
Closes #291
2016-09-29 01:12:27 +01:00
Estevao Soares dos Santos
f97e072bc4
fix(double linebreaks): fix double linebreaks in html output
...
Closes #291
2016-09-29 00:50:58 +01:00
Estevao Soares dos Santos
0cc55b07ee
fix(simplifiedAutoLink): fix simplified autolink to match GFM behavior
...
Using the simplifiedAutoLink option does not return the expected GFM behaviour when parsing links without a http prefix.
Previously, `www.google.com` would be parsed into `<a href="www.google.com">www.google.com</a>`.
With this fix, showdown behaves like GFM, and the result is `<a href="http://www.google.com ">www.google.com</a>`
Closes #284 , closes #285
2016-08-19 19:12:25 +01:00
Estevao Soares dos Santos
8591ec8196
Merge branch 'develop' into feature/source_indentation_auto_removal
2016-06-21 01:42:50 +01:00
Estevão Soares dos Santos
261f127f7e
feat(smart-indent-fix): fix for es6 identation problems
...
Closes #259
2016-06-07 01:23:52 +01:00
Stewart McKee
6e30a48890
added check for undefined on text due to failing to parse tables
2016-05-24 10:26:59 +01:00
Estevão Soares dos Santos
ddaacfc41a
fix(tables): fix table heading separators requiring 3 dashes instead of 2
...
Closes #256
2016-05-17 21:27:40 +01:00
Estevão Soares dos Santos
6e5073d977
chore: remove html beautify from tests
2016-02-02 00:29:06 +00:00
Estevão Soares dos Santos
f58f014bc3
fix(tables): fix tables to match github's md spec
...
Now Leading and trailing pipes (|) are optional in tables
Closes #230
2016-01-25 05:24:54 +00:00
Estevão Soares dos Santos
c97f1dc6b1
feat(markdown="1"): enable parsing markdown inside HTML blocks
...
Enable parsing markdown inside HTML blocks if those blocks have an attribute called markdown="1".
This feature is EXPERIMENTAL! As such, the behavior might change on future releases.
Closes #178
2016-01-02 01:08:17 +00:00
Estevão Soares dos Santos
5669317fe4
fix(strikethrough): Fix strikethrough issue with escaped chars
...
Closes #214
2015-10-30 01:00:30 +00:00
Estevão Soares dos Santos
e86aea8183
fix(literalMidWordUnderscores): fix different behavior with asterisks
...
Closes #198
2015-10-19 03:09:50 +01:00
Estevão Soares dos Santos
5b1f716151
chore: normalize test names
2015-10-19 02:50:32 +01:00
Estevão Soares dos Santos
8ebb25e486
fix(simpleautolink): fix mail simpleAutoLink to ignore urls with @ symbol
...
Urls with @ symbol will not be incorrectly converted to mail addressed
Closes #204
2015-10-07 04:46:28 +01:00
Estevão Soares dos Santos
50256233eb
fix(tables): fix md tables being parsed inside indented code blocks.
...
Closes #193
2015-08-27 03:41:59 +01:00
Estevão Soares dos Santos
eeccee7038
Merge branch 'develop'
2015-07-22 18:29:00 +01:00
Estevão Soares dos Santos
789dc1806a
feat(subParser/tables.js): add support for md span elements in table headers
...
+ tests
Closes #179
2015-07-22 18:21:20 +01:00
Estevão Soares dos Santos
5d0ec964e4
test: add test for autolink literalMidWordUnderscores options used together
2015-07-14 20:52:56 +01:00
Estevão Soares dos Santos
7ee2017c56
fix(subParsers/italicsAndBold.js): fix broken em/strong tags when used with literalMidWordUnderscores
...
When literalMidWordUnderscoresis set to true, em and strong tags that start or end a paragraph don't get parsed as such.
This fixes this issue.
Closes #174
2015-07-14 16:51:26 +01:00
Estevão Soares dos Santos
20ca099f56
chore: add class to tasklist items
2015-07-11 23:09:47 +01:00
Estevão Soares dos Santos
dc72403acc
feat(tasklists): add support for GFM tasklists
...
Github Flavored Markdown supports tasklist by `[x]` or `[ ]` after list item marker.
This commit adds this feature to showdown through an option called "tasklists".
Related to #164
2015-07-11 23:02:02 +01:00
Estevão Soares dos Santos
c33f98884b
feat(ghCodeBlocks): add option to disable GH codeblocks
...
GFM support fenced codeblocks. Showdown, since very early, adopted this too.
It is now possible to disable GFM codeblocks with the option "ghCodeBlocks" set to false.
It is enabled by default
2015-07-11 20:33:11 +01:00
Estevão Soares dos Santos
5ec75c459b
fix(subparsers/tables.js): fix parser order so that tables include all spanGamut elements
2015-07-11 19:50:26 +01:00
Estevão Soares dos Santos
1c8c928d0a
feat(subParsers/table): support for table alignment
...
Credits to [torcellite (Karthik Balakrishnan)](https://github.com/torcellite )
2015-07-11 18:21:43 +01:00