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
1 year ago
Vitaly Puzrin
9f5e9c6069
lint: remove key spacing
1 year ago
Vitaly Puzrin
8b815a6072
lint: reduce empty lines
1 year ago
Vitaly Puzrin
3c66f25608
eslint: config cleanup & drop nested configs
1 year ago
Vitaly Puzrin
5578e698af
Cleanup internal exports
1 year ago
Vitaly Puzrin
7f0f211a20
Add CJS build fallback
1 year ago
Vitaly Puzrin
d60c6d8f09
Drop `dist` - run build on publish
1 year ago
Vitaly Puzrin
6cbb5b2233
Deps bump
1 year ago
Vitaly Puzrin
e4a1712f64
Code cleanup
1 year ago
Vitaly Puzrin
2c8922c0a1
Simplify coverage report
1 year ago
Vitaly Puzrin
2e798c0bca
Dist rebuild
1 year ago
Vitaly Puzrin
f36433fce2
Add babel for build
1 year ago
Vitaly Puzrin
efc714f702
standard: more tweaks & simplify eslint config
1 year ago
Vitaly Puzrin
94177fca70
standard: spaces in comments
1 year ago
Vitaly Puzrin
9e7378775f
standard: init vars in separate declaration
1 year ago
Vitaly Puzrin
7dfcf69b71
standard: no spaces near array brackets
1 year ago
Vitaly Puzrin
0eb4cb96a4
standard: space before function params
1 year ago
Vitaly Puzrin
d0219010ad
standard: remove semi
1 year ago
Vitaly Puzrin
88b8669c46
var => const, let
1 year ago
Vitaly Puzrin
6eddd2553f
dist rebuild
1 year ago
Vitaly Puzrin
5347c2d33f
Fix cjs build and package entries
1 year ago
Vitaly Puzrin
b8d1bf467e
Drop orphaned file
1 year ago
Vitaly Puzrin
01db29c4b7
Cleanup demo
1 year ago
Vitaly Puzrin
9f39910f19
Drop coveralls dep
1 year ago
Vitaly Puzrin
737c95a129
Fix demo build
1 year ago
Vitaly Puzrin
4ba1e660c4
Drop package.lock
1 year ago
Vitaly Puzrin
4f3bb4916e
Fix docs generator
1 year ago
Vitaly Puzrin
1c49695346
Deps bump
1 year ago
Vitaly Puzrin
8ddd00513d
coverage: nyc => c8
1 year ago
Vitaly Puzrin
e92e776411
Rewrite core to es6 modules
1 year ago
Vitaly Puzrin
beed9aee2c
punycode: switch to userland package
- Closes #967 , #969 , #513
1 year ago
Vitaly Puzrin
f5c5149ef6
CI: bump node version
1 year ago
Vitaly Puzrin
8980511a7a
Rewrite tests to es6 modules
1 year 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
1 year 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
Vitaly Puzrin
e476f78bc3
13.0.2 released
1 year ago
Vitaly Puzrin
dfd485b62f
Dist rebuild
1 year ago
Alex Kocharin
80a3adc094
Fix crash in linkify inline rule on malformed input
1 year ago
Alex Kocharin
49ca65bbef
Sync pathological tests with cmark
1 year ago
Alex Kocharin
2b6cac2582
Sync pathological tests with cmark
this reflects following commit, no changes are necessary:
eb54ef4d68
2 years ago
Zearin
08444a5c1c
Fix typo; minor copy-edits ( #879 )
2 years ago
Baoshuo Ren
940459e654
fix: remove outdated comments ( #891 )
ref: f52351499b
2 years ago
Alex Kocharin
1529ff4944
Guard against custom rule not incrementing pos
3 years ago
Alex Kocharin
6325878f9f
Multiple refactors
removed unused and duplicated variables
3 years ago