Sindre Bøyum
66e8516bb1
docs: replace `.js` with `.mjs` in links to files ( #981 )
* docs: replace `.js` with `.mjs` in links to files
* docs: replace `.js` with `.mjs` in links to files
11 months ago
Vitaly Puzrin
c1f3ff7b54
Drop babelmark responder support
11 months ago
Vitaly Puzrin
a869f4a8f3
CI: update status badge
11 months ago
Vitaly Puzrin
21f7b85fd5
Update api docs header
11 months ago
Vitaly Puzrin
4949a10120
14.0.0 released
11 months ago
Vitaly Puzrin
8725522c8c
README: update samples to esm
11 months ago
Vitaly Puzrin
ccea8b147b
demo: update twemoji cdn, close #912
11 months ago
Vitaly Puzrin
92f21506b8
rollup: polish configs
11 months ago
Vitaly Puzrin
74ca77ad60
Demo: plugins bump
11 months ago
Alex Kocharin
d9885bad6e
Render html tags inside img alt as their original text ( #979 )
Spec is not clear on how to handle this. Three variations exist:
```
$ echo '![text <textarea> text](image.png)' | /home/user/commonmark.js/bin/commonmark
<p><img src="image.png" alt="text <textarea> text" /></p>
$ echo '![text <textarea> text](image.png)' | /home/user/cmark/build/src/cmark
<p><img src="image.png" alt="text <textarea> text" /></p>
$ echo '![text <textarea> text](image.png)' | /home/user/.local/bin/commonmark
<p><img src="image.png" alt="text text" /></p>
```
Prior to this commit:
- when HTML tags are enabled, tags were removed (as in Haskell version)
- when HTML tags are disabled, tags were escaped (as in C version)
After this commit:
- tags will be escaped (as in C version) regardless of HTML flag
+ render hardbreaks as newlines, same as cmark
11 months ago
Vitaly Puzrin
9f5e9c6069
lint: remove key spacing
12 months ago
Vitaly Puzrin
8b815a6072
lint: reduce empty lines
12 months ago
Vitaly Puzrin
3c66f25608
eslint: config cleanup & drop nested configs
12 months ago
Vitaly Puzrin
5578e698af
Cleanup internal exports
12 months ago
Vitaly Puzrin
7f0f211a20
Add CJS build fallback
12 months ago
Vitaly Puzrin
d60c6d8f09
Drop `dist` - run build on publish
12 months ago
Vitaly Puzrin
6cbb5b2233
Deps bump
12 months ago
Vitaly Puzrin
e4a1712f64
Code cleanup
12 months ago
Vitaly Puzrin
2c8922c0a1
Simplify coverage report
12 months ago
Vitaly Puzrin
2e798c0bca
Dist rebuild
12 months ago
Vitaly Puzrin
f36433fce2
Add babel for build
12 months ago
Vitaly Puzrin
efc714f702
standard: more tweaks & simplify eslint config
12 months ago
Vitaly Puzrin
94177fca70
standard: spaces in comments
12 months ago
Vitaly Puzrin
9e7378775f
standard: init vars in separate declaration
12 months ago
Vitaly Puzrin
7dfcf69b71
standard: no spaces near array brackets
12 months ago
Vitaly Puzrin
0eb4cb96a4
standard: space before function params
12 months ago
Vitaly Puzrin
d0219010ad
standard: remove semi
12 months ago
Vitaly Puzrin
88b8669c46
var => const, let
12 months ago
Vitaly Puzrin
6eddd2553f
dist rebuild
12 months ago
Vitaly Puzrin
5347c2d33f
Fix cjs build and package entries
12 months ago
Vitaly Puzrin
b8d1bf467e
Drop orphaned file
12 months ago
Vitaly Puzrin
01db29c4b7
Cleanup demo
12 months ago
Vitaly Puzrin
9f39910f19
Drop coveralls dep
12 months ago
Vitaly Puzrin
737c95a129
Fix demo build
12 months ago
Vitaly Puzrin
4ba1e660c4
Drop package.lock
12 months ago
Vitaly Puzrin
4f3bb4916e
Fix docs generator
12 months ago
Vitaly Puzrin
1c49695346
Deps bump
12 months ago
Vitaly Puzrin
8ddd00513d
coverage: nyc => c8
12 months ago
Vitaly Puzrin
e92e776411
Rewrite core to es6 modules
12 months ago
Vitaly Puzrin
beed9aee2c
punycode: switch to userland package
- Closes #967 , #969 , #513
12 months ago
Vitaly Puzrin
f5c5149ef6
CI: bump node version
12 months ago
Vitaly Puzrin
8980511a7a
Rewrite tests to es6 modules
12 months ago
Chris Sewell
13829a2c7e
Remove spurious state attribute ( #937 )
* Remove spurious state attribute
As far as I can see, this attribute is no longer used?
* Update pathological.json
* Update test/pathological.json
12 months ago
Katie Liu
6bce142987
updated outdated link in comment of lib/common/html_blocks.js ( #972 )
1 year ago
Matt Cowley
8470eb6706
chore: Update entities dependency ( #901 )
* Update entities package + usage
* Apply custom digital entity logic before entities decode
1 year ago
Brian Morearty
91c115d87b
Moved `hljs` class to `<code>` from `<pre>`. ( #913 )
In this change set I am changing the guidance in the README
and in comments to put the class on the correct tag: `<code>`, not `<pre>`.
If you put the `hljs` class on `<pre>`, syntax highlighting
does not use the correct padding.
You can see from the default CSS stylesheet in the highlight.js
repo that the `hljs` tag is expected to be on the `<code>` tag:
84719c17a5/src/styles/default.css (L17-L25)
All the official highlight.js examples have the `hljs` class on `<code>`:
https://highlightjs.org/static/demo/
1 year ago
Eiinu
a2c1f5aade
sample.md: remove deprecated emoji markup ( #921 )
1 year ago
dependabot[bot]
b249c9f0db
Bump actions/setup-node from 3 to 4 ( #964 )
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
433b4e1d2b
Bump actions/checkout from 3 to 4 ( #953 )
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
wackbyte
d65361cc9c
architecture.md: grammar/writing fixes, cleaner examples ( #940 )
1 year ago