Skip to content

Commit 5021bfd

Browse files
author
Tom Theisen
committed
Merge branch 'master' of https://github.com/markedjs/marked into gfm-strike
2 parents 94dbf90 + 7e47f2b commit 5021bfd

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
language: node_js
22

33
jobs:
4+
fast_finish: true
5+
allow_failures:
6+
- stage: security scan 🔐
7+
48
include:
59
- stage: unit tests 👩🏽‍💻
610
script: npm run test:unit
@@ -13,10 +17,6 @@ jobs:
1317
- node_js: lts/*
1418
- node_js: node
1519

16-
- stage: security scan 🔐
17-
script: npm run test:redos
18-
node_js: lts/*
19-
2020
- stage: lint ✨
2121
script: npm run test:lint
2222
node_js: lts/*
@@ -35,6 +35,10 @@ jobs:
3535
node_js: lts/*
3636
if: branch = master AND type = push
3737

38+
- stage: security scan 🔐
39+
script: npm run test:redos
40+
node_js: lts/*
41+
3842
cache:
3943
directories:
4044
- node_modules

bin/marked

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function help() {
2020
cwd: process.cwd(),
2121
env: process.env,
2222
setsid: false,
23-
customFds: [0, 1, 2]
23+
stdio: 'inherit'
2424
};
2525

2626
spawn('man', [path.resolve(__dirname, '/../man/marked.1')], options)

docs/USING_ADVANCED.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ console.log(myMarked('I am using __markdown__.'));
4343
|:-----------|:---------|:--------|:--------|:-------------|
4444
|baseUrl |`string` |`null` |??? |A prefix url for any relative link. |
4545
|breaks |`boolean` |`false` |??? |If true, use GFM [hard](https://github.github.com/gfm/#hard-line-breaks) and [soft](https://github.github.com/gfm/#soft-line-breaks) line breaks. Requires `gfm` be `true`.|
46-
|gfm |`boolean` |`true` |??? |If trie. use approved [GitHub Flavored Markdown (GFM) specification](https://github.github.com/gfm/).|
46+
|gfm |`boolean` |`true` |??? |If true, use approved [GitHub Flavored Markdown (GFM) specification](https://github.github.com/gfm/).|
4747
|headerIds |`boolean` |`true` |v0.4.0 |If true, include an `id` attribute when emitting headings (h1, h2, h3, etc).|
4848
|headerPrefix|`string` |`''` |??? |A string to prefix the `id` attribute when emitting headings (h1, h2, h3, etc).|
4949
|highlight |`function`|`null` |??? |A function to highlight code blocks, see <a href="#highlight">Asynchronous highlighting</a>.|

lib/marked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var block = {
3333
def: /^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,
3434
table: noop,
3535
lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,
36-
paragraph: /^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)+)/,
36+
paragraph: /^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,
3737
text: /^[^\n]+/
3838
};
3939

0 commit comments

Comments
 (0)