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
427859b3f7
chore: remove strayed counter
2017-06-02 03:30:01 +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
流年
7ba18dd81f
fix(anchors): fix issue with brackets in link URL
...
Closes #390
2017-05-28 17:25:56 +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
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
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
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
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
f7a429e8db
fix(paragraph): workaround QML bug
...
QML has a bug that changes the behavior or String.search().
This prevents blocks from being correctly unhashified.
This commit works around that bug, using RegExp.test
instead of String.search.
Credits to @qyvlik
Closes #246 , Closes #338
2017-02-05 19:57:24 +00:00
greenkeeper[bot]
b5e46fdb8d
Update dependencies to enable Greenkeeper 🌴 ( #335 )
...
adapt code to updated dependencies
2017-01-31 05:46:25 +00:00
Estevao Soares dos Santos
1832b7f721
fix(italicsAndBold): fix double emphasis edge case
2017-01-31 01:48:03 +00:00
Estevao Soares dos Santos
54bf74472a
fix(paragraphs): fix empty lines generating empty paragraphs
...
Empty lines should not be parsed as paragraphs. This was happening
in determined circumstances.
For instance, when stripping reference style links, `\n\n` was left being,
creating an undesired empty paragraph. This commit fixes the issue.
Closes #334
2017-01-30 20:43:56 +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
a4f05d4693
fix(italicsAndBold): fiz inconsistency in italicsAndBold parsing
...
The way showdown parsed cases suchs as this:
```
**foo **bar
__foo __bar
*foo *bar
_foo _bar
```
was inconsistent. This established that `__` or `**` preceeding a word
would not be parsed as em or strong.
Closes #332
2017-01-29 23:24:31 +00:00
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
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
bfcc0e44f0
fix(escapeSpecialCharsWithinTagAttributes): add ~ and = to escaped chars
2017-01-28 03:02:27 +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
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
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
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
Estevao Soares dos Santos
cf2a9075ae
chore: small blockGamut regex fix
2016-12-20 21:44:15 +00:00