Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
144e5fa
Dev deps bump
rlidwka Jul 7, 2020
b3531c8
Fix blockquotes
rlidwka Sep 10, 2020
805c695
Fix smartquotes adjacent to code block
rlidwka Sep 10, 2020
0b1699b
Add missing line mapping for table rows
rlidwka Sep 11, 2020
b979ca0
fix: remove unused comparison code
ocavue Aug 2, 2020
6629917
Remove unnecessary calculation
vassudanagunta Jul 29, 2020
f8c402f
dist rebuild
Sep 14, 2020
331ae11
11.0.1 relased
Sep 14, 2020
3021a52
Bring pipe escape algorithm in tables closer to gfm
rlidwka Sep 14, 2020
866fba3
Add lang str remainder to highlight callback
rlidwka Sep 14, 2020
be9e92b
Add changelog entry for 12.0.0
rlidwka Sep 15, 2020
9fe835b
Fix mappings for table rows
rlidwka Sep 25, 2020
cbf639a
eslint: move .eslintignore to main file
Oct 13, 2020
2aa9e03
Add .gitattributes, #719
Oct 13, 2020
cb42dad
changelog update
Oct 13, 2020
a2cf20d
browserify => rollup.js
Oct 13, 2020
446bbcf
Drop bower config
Oct 14, 2020
f156ed1
Don't decode %25 in beautified urls
rlidwka Oct 14, 2020
564de6b
Deps bump & related updates
Oct 14, 2020
4594d94
Simplify specsplit arguments
Oct 14, 2020
425e4a0
Drop makefile
Oct 14, 2020
e70d5e5
Browser files rebuild
Oct 14, 2020
1731de4
12.0.0 released
Oct 14, 2020
06d248e
Increase mocha timeout for babelify responder test
Oct 14, 2020
08ee3a7
tweak toc
Oct 14, 2020
75fe6e0
Fix tables inside lists indented with tabs
rlidwka Oct 19, 2020
ded6e4a
dist rebuid
Oct 19, 2020
e3c4c5c
12.0.1 released
Oct 19, 2020
8718c50
Fix linkify example code in README
pocke Oct 20, 2020
b56eeb0
Table with no columns is no longer a table
rlidwka Oct 23, 2020
cb8d903
dist update
Oct 23, 2020
b60493e
12.0.2 released
Oct 23, 2020
1b204ef
Merge pull request #722 from pocke/fix-linkify-example-code
Oct 28, 2020
8649584
Document the list of non-standard replacements enabled by `typographe…
jameshfisher Nov 10, 2020
b9b2ea1
Merge pull request #731 from jameshfisher/patch-1
Nov 10, 2020
4cd3263
dev deps bump
Nov 19, 2020
38a1b9f
Skip babelmark tests
Nov 19, 2020
dcb5d16
CI: Travis => Github Actions
Nov 19, 2020
cadc58e
Update CI badge
Nov 19, 2020
f688abc
Stop link parsing when second `<` is found
rlidwka Nov 19, 2020
1910a3c
Limit () nesting inside urls
rlidwka Nov 19, 2020
97a9d46
Speed up babelmark app tests
Nov 19, 2020
1ef5bcc
Bump entities 2.0.x => 2.1.x
Nov 20, 2020
1e8aff0
Fix quadratic time on backticks
rlidwka Nov 20, 2020
b1651b1
Stop link title parsing when second `(` is found
rlidwka Nov 20, 2020
fece91e
Fix backtick algorithm
rlidwka Nov 20, 2020
73281d8
Port pathological tests from cmark
rlidwka Nov 20, 2020
1db3f95
Track cmark pathological tests updates
Nov 20, 2020
77cccb8
Restrict pathological tests execution time
Nov 20, 2020
537ab89
Don't try to parse link title if link wasn't found
rlidwka Nov 23, 2020
83b0575
Fix quadratic time on emphasis
rlidwka Nov 23, 2020
2290e10
Disallow escaped spaces inside link destination
rlidwka Nov 24, 2020
8cd6fc3
Fix quadratic compexity on backticks
rlidwka Nov 25, 2020
e729b90
Fix quadratic complexity in autolinks
rlidwka Nov 25, 2020
8ad16ac
Allow EOL in processing instructions
rlidwka Nov 25, 2020
ddbb195
Remove meta from list of block html tags
rlidwka Nov 25, 2020
fc3dc00
Update pathological tests crc
Dec 7, 2020
2710272
dist rebuild
Dec 7, 2020
ef59691
12.0.3 released
Dec 7, 2020
c9dd942
Fix crash when processing strikethrough
rlidwka Dec 14, 2020
be22253
Update funding info
Dec 17, 2020
c9949dd
Avoid fenced token mutation, #745
Dec 20, 2020
6f41c70
dist rebuild
Dec 20, 2020
7b8969c
12.0.4 released
Dec 20, 2020
32564ba
Clarify `Token.info` comment
hukkinj1 Mar 17, 2021
041b7c7
Merge pull request #766 from hukkinj1/info-comment
Mar 17, 2021
cd5296f
Fix table/list parsing ambiguity (#767)
hukkinj1 Mar 27, 2021
309c03a
Lower priority for ATX headers to resolve conflict with HTML blocks
rlidwka Apr 12, 2021
0a84be4
dist rebuild
Apr 14, 2021
3740146
12.0.5 released
Apr 14, 2021
272a470
Fix newline not rendered in image alt attribute
hukkinj1 Apr 15, 2021
28d9ad8
Merge pull request #775 from hukkinj1/fix-image-newline
Apr 16, 2021
e5b0eb3
dist rebuild
Apr 16, 2021
df4607f
12.0.6 released
Apr 16, 2021
064d602
Updated highlight.js usage info
Apr 22, 2021
0b14fa0
Update CommonMark spec to 0.30
rlidwka Jun 30, 2021
eed156e
Fix emphasis algorithm as per 0.30 spec
rlidwka Jun 30, 2021
13d8335
Dist rebuild
Jul 1, 2021
13cdeb9
12.1.0 released
Jul 1, 2021
e5986bb
Always suffix indented code block with a newline
hukkin Jul 12, 2021
77fb937
Add pathological test from cmark
rlidwka Jul 29, 2021
8bcc82a
Parser: Set ordered list_item_open token info to input marker.
kohler Jul 7, 2021
08827d6
dist rebuild
Aug 2, 2021
6e2de08
12.2.0 released
Aug 2, 2021
e07a9dd
typo fix
Oct 16, 2021
24abaa5
Improve emphasis algorithm
rlidwka Dec 9, 2021
8564eed
Dev deps bump
Dec 9, 2021
393354c
Dist rebuild
Dec 9, 2021
2e31d34
12.3.0 released
Dec 9, 2021
830757c
Fix spelling error in question Github Template (#835)
AramZS Dec 23, 2021
1cd8a51
Fix tab preventing paragraph continuation in lists
rlidwka Jan 7, 2022
ae5a243
dist rebuild
Jan 7, 2022
76469e8
12.3.1 released
Jan 7, 2022
ffc49ab
Fix possible ReDOS in newline rule.
Jan 8, 2022
aca3396
dist rebuild
Jan 8, 2022
d72c68b
12.3.2 released
Jan 8, 2022
d67155c
Add dependabot config
Jan 16, 2022
6a5bf2d
CI: update action's versions
Jan 16, 2022
df77ca1
Bump entities from 2.1.0 to 3.0.1
dependabot[bot] Jan 16, 2022
7edd820
Update funding info
Jan 20, 2022
5528616
Bump actions/setup-node from 2 to 3
dependabot[bot] Feb 25, 2022
6da0103
Bump actions/checkout from 2 to 3
dependabot[bot] Mar 2, 2022
c7e36eb
Fix typo
Mizux Mar 29, 2022
7f0bc25
Merge pull request #857 from Mizux/patch-1
Mar 29, 2022
a2aae8e
Fix typo
kaankabalak Mar 31, 2022
750a954
Merge pull request #858 from kaankabalak/patch-1
puzrin Mar 31, 2022
75037c6
Put escape sequences into separate token
rlidwka Apr 14, 2022
6b58ec4
Add linkifier rule to inline chain for full links
rlidwka Apr 15, 2022
3fc0deb
Put entities to separate token
rlidwka Apr 17, 2022
f523514
Remove (p) => § replacement in typographer
rlidwka Apr 18, 2022
e6d1bfd
refactor: replace deprecated String.prototype.substr()
CommanderRoot Mar 21, 2022
bab0baf
Added examples on how to add and modify rules (#619)
saenglert Apr 18, 2022
d1757ed
Bump linkify-it to v4
Apr 22, 2022
0e4c0f4
Dist rebuild
Apr 22, 2022
6ec0b76
13.0.0 released
Apr 22, 2022
e157cd2
doc: Add syntax highlighting
yne Apr 24, 2022
0c19c37
Merge pull request #866 from yne/patch-1
puzrin Apr 24, 2022
d17df13
Bump linkify-it to 4.0.1
May 3, 2022
b8b610f
Dist rebuild
May 3, 2022
bda7182
13.0.1 released
May 3, 2022
e843acc
Merge branch 'master' of github.com:markdown-it/markdown-it
May 3, 2022
9ff460e
Drop a lot of extra code from blockquotes
rlidwka May 21, 2022
6325878
Multiple refactors
rlidwka May 21, 2022
1529ff4
Guard against custom rule not incrementing pos
rlidwka May 21, 2022
940459e
fix: remove outdated comments (#891)
renbaoshuo Aug 27, 2022
08444a5
Fix typo; minor copy-edits (#879)
Zearin Aug 27, 2022
2b6cac2
Sync pathological tests with cmark
rlidwka Sep 16, 2022
49ca65b
Sync pathological tests with cmark
rlidwka Sep 26, 2023
80a3adc
Fix crash in linkify inline rule on malformed input
rlidwka Sep 26, 2023
dfd485b
Dist rebuild
puzrin Sep 26, 2023
e476f78
13.0.2 released
puzrin Sep 26, 2023
d65361c
architecture.md: grammar/writing fixes, cleaner examples (#940)
wackbyte Nov 18, 2023
433b4e1
Bump actions/checkout from 3 to 4 (#953)
dependabot[bot] Nov 18, 2023
b249c9f
Bump actions/setup-node from 3 to 4 (#964)
dependabot[bot] Nov 18, 2023
a2c1f5a
sample.md: remove deprecated emoji markup (#921)
eiinu Nov 18, 2023
91c115d
Moved `hljs` class to `<code>` from `<pre>`. (#913)
BMorearty Nov 18, 2023
8470eb6
chore: Update entities dependency (#901)
MattIPv4 Nov 18, 2023
6bce142
updated outdated link in comment of lib/common/html_blocks.js (#972)
kliu57 Nov 18, 2023
13829a2
Remove spurious state attribute (#937)
chrisjsewell Nov 19, 2023
8980511
Rewrite tests to es6 modules
puzrin Nov 20, 2023
f5c5149
CI: bump node version
puzrin Nov 20, 2023
beed9ae
punycode: switch to userland package
puzrin Nov 20, 2023
e92e776
Rewrite core to es6 modules
puzrin Nov 20, 2023
8ddd005
coverage: nyc => c8
puzrin Nov 21, 2023
1c49695
Deps bump
puzrin Nov 21, 2023
4f3bb49
Fix docs generator
puzrin Nov 21, 2023
4ba1e66
Drop package.lock
puzrin Nov 21, 2023
737c95a
Fix demo build
puzrin Nov 21, 2023
9f39910
Drop coveralls dep
puzrin Nov 21, 2023
01db29c
Cleanup demo
puzrin Nov 21, 2023
b8d1bf4
Drop orphaned file
puzrin Nov 21, 2023
5347c2d
Fix cjs build and package entries
puzrin Nov 22, 2023
6eddd25
dist rebuild
puzrin Nov 22, 2023
88b8669
var => const, let
puzrin Nov 28, 2023
d021901
standard: remove semi
puzrin Nov 28, 2023
0eb4cb9
standard: space before function params
puzrin Nov 28, 2023
7dfcf69
standard: no spaces near array brackets
puzrin Nov 28, 2023
9e73787
standard: init vars in separate declaration
puzrin Nov 28, 2023
94177fc
standard: spaces in comments
puzrin Nov 28, 2023
efc714f
standard: more tweaks & simplify eslint config
puzrin Nov 28, 2023
f36433f
Add babel for build
puzrin Nov 28, 2023
2e798c0
Dist rebuild
puzrin Nov 28, 2023
2c8922c
Simplify coverage report
puzrin Nov 29, 2023
e4a1712
Code cleanup
puzrin Dec 1, 2023
6cbb5b2
Deps bump
puzrin Dec 1, 2023
d60c6d8
Drop `dist` - run build on publish
puzrin Dec 1, 2023
7f0f211
Add CJS build fallback
puzrin Dec 2, 2023
5578e69
Cleanup internal exports
puzrin Dec 2, 2023
3c66f25
eslint: config cleanup & drop nested configs
puzrin Dec 2, 2023
8b815a6
lint: reduce empty lines
puzrin Dec 2, 2023
9f5e9c6
lint: remove key spacing
puzrin Dec 2, 2023
d9885ba
Render html tags inside img alt as their original text (#979)
rlidwka Dec 6, 2023
74ca77a
Demo: plugins bump
puzrin Dec 7, 2023
92f2150
rollup: polish configs
puzrin Dec 7, 2023
ccea8b1
demo: update twemoji cdn, close #912
puzrin Dec 8, 2023
8725522
README: update samples to esm
puzrin Dec 8, 2023
4949a10
14.0.0 released
puzrin Dec 8, 2023
21f7b85
Update api docs header
puzrin Dec 8, 2023
a869f4a
CI: update status badge
puzrin Dec 8, 2023
c1f3ff7
Drop babelmark responder support
puzrin Dec 8, 2023
66e8516
docs: replace `.js` with `.mjs` in links to files (#981)
boyum Dec 11, 2023
d07d585
docs: replace .js with .mjs in links to files in ndoc comments (#989)
Octobug Jan 6, 2024
806bead
Add new pathological test from cmark upstream (#1008)
notriddle Mar 1, 2024
00b8a93
limit the number of autocompleted cells in a table
rlidwka Mar 1, 2024
de814ca
fix quadratic complexity in reference parser (#1004)
rlidwka Mar 1, 2024
eaef476
Fix typo in architecture.md (#994)
umakantv Mar 1, 2024
cd24778
Update to comply with spec 0.31.2
notriddle Mar 2, 2024
0bfc57d
Update spec to 0.31.2
notriddle Mar 2, 2024
d7ce5ec
Merge pull request #1009 from notriddle/spec-0.31.2
puzrin Mar 2, 2024
5e90063
simplify logic in scanDelims
rlidwka Mar 2, 2024
7ad8179
add changelog
rlidwka Mar 2, 2024
a367c44
Fix typo in comments of text.mjs (#1015)
weibohan07 Mar 13, 2024
0fe7ccb
14.1.0 released
puzrin Mar 18, 2024
d2782d8
Add supplementary example-driven documentation (#1092)
neillrobson Sep 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

158 changes: 19 additions & 139 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,142 +1,22 @@
env:
node: true
browser: false
es6: false
extends: standard

rules:
accessor-pairs: 2
array-bracket-spacing: [ 2, "always", { "singleValue": true, "objectsInArrays": true, "arraysInArrays": true } ]
block-scoped-var: 2
block-spacing: 2
brace-style: [ 2, '1tbs', { allowSingleLine: true } ]
# Postponed
#callback-return: 2
comma-dangle: 2
comma-spacing: 2
comma-style: 2
computed-property-spacing: [ 2, never ]
consistent-this: [ 2, self ]
consistent-return: 2
# ? change to multi
curly: [ 2, 'multi-line' ]
dot-notation: 2
eol-last: 2
eqeqeq: 2
func-style: [ 2, declaration ]
# Postponed
#global-require: 2
guard-for-in: 2
handle-callback-err: 2
overrides:
-
files: [ '*.mjs' ]
rules:
no-restricted-globals: [ 2, require, __dirname ]
-
files: [ 'test/**' ]
env: { mocha: true }
-
files: [ 'lib/**' ]
parserOptions: { ecmaVersion: 2015 }

indent: [ 2, 2, { VariableDeclarator: { var: 2, let: 2, const: 3 }, SwitchCase: 1, ignoreComments: true } ]
ignorePatterns:
- demo/
- dist/
- benchmark/extra/

# key-spacing: [ 2, { "align": "value" } ]
keyword-spacing: 2
linebreak-style: 2
max-depth: [ 1, 6 ]
max-nested-callbacks: [ 1, 4 ]
# string can exceed 80 chars, but should not overflow github website :)
max-len: [ 2, 120, 1000 ]
new-cap: 2
new-parens: 2
# Postponed
#newline-after-var: 2
no-alert: 2
no-array-constructor: 2
no-bitwise: 2
no-caller: 2
#no-case-declarations: 2
no-catch-shadow: 2
no-cond-assign: 2
no-console: 1
no-constant-condition: 2
#no-control-regex: 2
no-debugger: 2
no-delete-var: 2
no-div-regex: 2
no-dupe-args: 2
no-dupe-keys: 2
no-duplicate-case: 2
no-else-return: 2
# Tend to drop
# no-empty: 1
no-empty-character-class: 2
no-empty-pattern: 2
no-eq-null: 2
no-eval: 2
no-ex-assign: 2
no-extend-native: 2
no-extra-bind: 2
no-extra-boolean-cast: 2
no-extra-semi: 2
no-fallthrough: 2
no-floating-decimal: 2
no-func-assign: 2
# Postponed
#no-implicit-coercion: [2, { "boolean": true, "number": true, "string": true } ]
no-implied-eval: 2
no-inner-declarations: 2
no-invalid-regexp: 2
no-irregular-whitespace: 2
no-iterator: 2
no-label-var: 2
no-labels: 2
no-lone-blocks: 2
no-lonely-if: 2
no-loop-func: 2
no-mixed-requires: 2
no-mixed-spaces-and-tabs: 2
# Postponed
#no-native-reassign: 2
no-negated-in-lhs: 2
# Postponed
#no-nested-ternary: 2
no-new: 2
no-new-func: 2
no-new-object: 2
no-new-require: 2
no-new-wrappers: 2
no-obj-calls: 2
no-octal: 2
no-octal-escape: 2
no-path-concat: 2
no-proto: 2
no-redeclare: 2
# Postponed
#no-regex-spaces: 2
no-return-assign: 2
no-self-compare: 2
no-sequences: 2
no-shadow: 2
no-shadow-restricted-names: 2
no-sparse-arrays: 2
no-trailing-spaces: 2
no-undef: 2
no-undef-init: 2
no-undefined: 2
no-unexpected-multiline: 2
no-unreachable: 2
no-unused-expressions: 2
no-unused-vars: 2
no-use-before-define: 2
no-void: 2
no-with: 2
object-curly-spacing: [ 2, always, { "objectsInObjects": true, "arraysInObjects": true } ]
operator-assignment: 1
# Postponed
#operator-linebreak: [ 2, after ]
semi: 2
semi-spacing: 2
space-before-function-paren: [ 2, { "anonymous": "always", "named": "never" } ]
space-in-parens: [ 2, never ]
space-infix-ops: 2
space-unary-ops: 2
# Postponed
#spaced-comment: [ 1, always, { exceptions: [ '/', '=' ] } ]
strict: [ 2, global ]
quotes: [ 2, single, avoid-escape ]
quote-props: [ 1, 'as-needed', { "keywords": true } ]
radix: 2
use-isnan: 2
valid-typeof: 2
yoda: [ 2, never, { "exceptRange": true } ]
rules:
camelcase: 0
no-multi-spaces: 0
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Enforce Unix newlines
* text=auto eol=lf
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
github: markdown-it
open_collective: markdown-it
tidelift: "npm/markdown-it"
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ assignees: ''

<!--

Note, we have some time constrains, but we always try to help developers, who write plugins. So:
Note, we have some time constraints, but we always try to help developers, who write plugins. So:

- Please, avoid generic programming questions.
- Avoid questions about markdown. Use CommonMark resources for that https://commonmark.org/.
Expand Down
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily

- package-ecosystem: npm
directory: /
schedule:
interval: daily
allow:
- dependency-type: production
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
pull_request:
schedule:
- cron: '0 0 * * 3'

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ '18' ]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- run: npm install

- name: Test
run: npm test

- name: Upload coverage report to coveralls.io
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.nyc_output
benchmark/extra/
node_modules/
coverage/
demo/
apidoc/
dist/
*.log
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

Loading