Commit Graph

869 Commits

Author SHA1 Message Date
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
Estevao Soares dos Santos
9b5a2330f6 fix(bower): fix sourceMappingURL errors in bower by including source
closes #200
2016-06-21 02:34:49 +01:00
Estevão Soares dos Santos
b76048cf22 Update CHANGELOG.md 2016-06-21 02:27:46 +01:00
Estevao Soares dos Santos
04c296e3b9 release 1.4.2 2016-06-21 02:11:27 +01:00
Estevao Soares dos Santos
3de3a0bc3a chore: force gir binary mode on dist files 2016-06-21 02:03:51 +01:00
Estevao Soares dos Santos
413511c731 chore: fix line endings, enforcing lf in js files 2016-06-21 02:01:22 +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
73206b07fb fix(image-parser): fix ref style imgs after inline style imgs not parsing correctly
When reference style and inline style are mixed together, in the same line, it produces weird parsing bugs. This commit fixes this

Closes #261
2016-06-08 17:16:49 +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
Estevão Soares dos Santos
d91586b09b Merge pull request #257 from stewartmckee/fixed_undefined_text_on_codespans
Added check for undefined on text due to failing to parse tables
2016-05-28 15:33:12 +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