Commit Graph

457 Commits

Author SHA1 Message Date
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
Estevão Soares dos Santos
94ec12b12d release 1.4.1 2016-05-17 21:33:56 +01:00
Estevão Soares dos Santos
6699f46779 Merge branch 'develop' of https://github.com/showdownjs/showdown into develop
# Conflicts:
#	dist/showdown.js
#	dist/showdown.js.map
#	dist/showdown.min.js
#	dist/showdown.min.js.map
2016-05-17 21:31:34 +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
e586201025 release 1.4.0 2016-05-13 16:28:47 +01:00
Estevão Soares dos Santos
77007181d8 Merge branch 'master' into develop 2016-04-26 19:19:00 +01:00
Estevão Soares dos Santos
478a0e4fca Merge pull request #251 from samb0t/case-insensitive-checkboxes
Support for case-insensitive checkboxes for render. [x] == [X]
2016-04-26 16:21:06 +01:00
Sam Bottoni
656aa98305 Support for case-insensitive checkboxes for render. [x] == [X] 2016-04-26 09:08:50 -05:00
Estevão Soares dos Santos
e0726a6e42 feature(evt_listeners): make globals var accessible to listeners 2016-03-20 17:08:44 +00:00
Estevão Soares dos Santos
452c4285f4 Update README.md 2016-03-20 16:48:42 +00:00
Estevão Soares dos Santos
7fabc78ff6 Merge pull request #248 from Hypercubed/patch-1
docs(readme): Added link to SystemJS/JSPM plugin
2016-03-20 16:46:54 +00:00
Jayson Harshbarger
70a6caaf4f docs(readme): Added link to SystemJS/JSPM plugin 2016-03-20 13:32:57 +09:00
Estevão Soares dos Santos
6e5073d977 chore: remove html beautify from tests 2016-02-02 00:29:06 +00:00