Commit Graph

529 Commits

Author SHA1 Message Date
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
Estevao Soares dos Santos
cf2a9075ae chore: small blockGamut regex fix 2016-12-20 21:44:15 +00:00
Estevao Soares dos Santos
a06a40cd51 update changelog 2016-12-19 12:19:04 +00:00
Estevao Soares dos Santos
e8bcfac588 release 1.5.3 2016-12-19 12:17:39 +00:00
Estevao Soares dos Santos
d532dea8f0 Merge branch 'master' into develop 2016-12-19 12:16:22 +00:00
Estevao Soares dos Santos
da8fb535c9 fix: parser slowness with certain inputs
A bad desinged regex was causing the parser to become extremelly slow
when given some inputs.

Closes #315
2016-12-19 12:13:30 +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
143f324e4e release 1.5.2 2016-12-17 05:31:08 +00:00
Estevao Soares dos Santos
6e90f7c5ad fix(nbsp): nbsp are replaced with simple spaces 2016-12-17 05:26:15 +00:00
Estevao Soares dos Santos
10b3410934 fix: lines with mutiple dashes being parsed as multilists
This input: `- - - a` causes trouble for the parser,
since it interprets it as multiple sublists, where it should
only interpert it as a list with a single list item.
This commit fixes this behavior.

Closes #312
2016-12-17 05:20:23 +00:00
Estevao Soares dos Santos
0a856d5394 refactor(hr): speed up hr parsing
speed up horizontal rule parsing by simplifying the regex
2016-12-17 03:29:53 +00:00
Estevao Soares dos Santos
f0d25b7bd5 fix(listeners): fix listeners typo
Closes #290
2016-12-01 15:48:30 +00:00
Estevao Soares dos Santos
9683eefaf1 release 1.5.1 2016-12-01 15:40:28 +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
Estevão Soares dos Santos
7c05093a06 Update CHANGELOG.md 2016-11-29 03:41:11 +00:00
Estevão Soares dos Santos
7d7273592a Update CHANGELOG.md 2016-11-29 03:39:26 +00:00
Estevão Soares dos Santos
e00d270383 chore: update REAMDE.md to include reference to flavors 2016-11-29 03:19:35 +00:00
Estevao Soares dos Santos
5d57d71ef7 Update README.md 2016-11-25 19:51:36 +00:00
Estevão Soares dos Santos
3cd6f22573 Update README.md 2016-11-25 19:15:31 +00:00
Estevao Soares dos Santos
37b107b095 release 1.5.0 2016-11-11 08:56:18 +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
1a232e8717 chore: fix small typo in options description 2016-11-11 07:57:56 +00:00
Estevao Soares dos Santos
d51be6e0b4 fix(lists): enforce 4 space indentation in sublists
Acording to the spec, multi paragraph (or block) list item requires subblocks
to be indented 4 spaces (or 1 tab). Although, this is mentioned in the documentation,
Showdown didn't enforce this rule in sublists because other implementations,
such as GFM also didn't. However, in some edge cases, this led to inconsistent behavior,
as shown in issue #299. This commit makes 4 space indentation in sublists
mandatory.

BREAKING CHANGE: syntax for sublists is more restrictive. Before, sublists SHOULD be
indented by 4 spaces, but indenting 2 spaces would work. Now, sublists MUST be
indented 4 spaces or they won't work.

With this input:
```md
* one
  * two
    * three
```

Before (ouput):
```html
<ul>
  <li>one
    <ul>
      <li>two
        <ul><li>three</li></ul>
      <li>
    </ul>
  </li>
<ul>
```

After (output):
```html
<ul>
  <li>one</li>
  <li>two
    <ul><li>three</li></ul>
  </li>
</ul>
```

To migrate either fix source md files or activate the option `disableForced4SpacesIndentedSublists` (coming in v1.5.0):

```md
showdown.setOption('disableForced4SpacesIndentedSublists', true);
```
2016-11-11 07:56:29 +00:00
Estevao Soares dos Santos
9cfe8b1412 fix(lists): fix sublists inconsistent behavior
Nested ul and ol lists behave inconsistently in the requirement
of having 3 spaces to be considered a nested list.
This fix changes the requirement to only one space in
both cases.

Closes #299
2016-11-09 02:54:18 +00:00
Estevao Soares dos Santos
b7a69e2dd6 release 1.4.4 2016-11-02 21:16:46 +00:00
Estevao Soares dos Santos
19373d03b1 Merge branch 'master' into develop 2016-11-02 21:05:18 +00:00
Estevão Soares dos Santos
cc673f1d69 doc(README.md): add reference to NuGet package
Closes #253
2016-10-13 22:51:44 +01: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
fe64a1715d chore(travis): simplify travis.yml 2 2016-09-29 00:25:51 +01:00
Estevao Soares dos Santos
c74826ff8f chore(travis): simplify .travis.yml 2016-09-29 00:23:54 +01:00
Estevao Soares dos Santos
8cd79e1344 chore(travis): update node versions 2016-09-29 00:20:30 +01:00
Estevao Soares dos Santos
b7e7560f87 fix: make some regexes a bit faster and make tab char equivalent to 4 spaces 2016-08-30 06:24:19 +01:00
Estevao Soares dos Santos
799abea767 fix(parser): fix issue with comments inside nested code blocks
Code blocks containing comments are now converted correctly when nested in list items.

Closes #288
2016-08-30 06:07:57 +01:00
Estevao Soares dos Santos
5d2016c0c1 release 1.4.3 2016-08-19 19:14:12 +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
984942e239 fix(ie8 compatibility): Improve ie8 compatibility
Several fixes to improve compatibility with Internet Explorer 8

Closes #275, Closes #271
2016-07-20 22:26:15 +01:00
Estevao Soares dos Santos
faf74aa899 Merge branch 'develop' 2016-07-20 22:11:25 +01:00
Estevao Soares dos Santos
bb36e7d203 . 2016-07-20 22:10:56 +01:00
Estevao Soares dos Santos
740f580f11 Merge branch 'master' of https://github.com/showdownjs/showdown
# Conflicts:
#	dist/showdown.js
#	dist/showdown.js.map
#	dist/showdown.min.js
#	dist/showdown.min.js.map
2016-07-20 22:07:49 +01:00
Estevao Soares dos Santos
238726ca91 fix(comments): Fix html comment parser
When an html comment was followed by a a long line of dashes, it would
freeze the parser as the lookahead in the html comment parser regex was
very slow. The regex was modified and simplified, so no lookahead is
needed anymore.

Closes #276
2016-07-20 22:01:10 +01:00
Estevão Soares dos Santos
be2ffc1845 Merge pull request #271 from butchmarshall/master
fix(IE8): Fix IE8 regex compatability
2016-06-27 20:34:49 +01:00
Butch Marshall
cc4cdf7306 Ran build 2016-06-27 15:58:35 +00:00
Butch Marshall
682bbbeca4 Fixed IE8 regex compatability 2016-06-27 15:43:51 +00:00
Estevão Soares dos Santos
b9c881dfc2 Merge pull request #268 from heroandtn3/master
fix(license.txt): Normalize line endings in license.txt

closes #268
2016-06-21 17:42:51 +01:00
GTH Bot
4ab11aa834 Normalize line endings 2016-06-21 13:56:56 +07:00