Spencer Whitehead
1f579f7628
fix: Remove unused plus typescript tightening ( #3527 )
...
* chore: remove unused build file
* chore: remove unused package
* chore: remove unused function
* chore: remove unnecessary | undefineds
* core: replace unnecessary &&s with optional chaining
* chore: use .at(-x) instead of .length - x property access
gives stricter TS typing, is more concise
* chore: tighten TS types
* chore: sort tokens alphabetically
* fix: typeof plus !== null check
* chore: type test for .parse, .use
* fix: if check
2024-11-17 21:53:28 -07:00
Tony Brix
cf4e518348
chore: clean up files ( #3529 )
...
* chore: show percentage slower in bench
* chore: remove jasmine.json
2024-11-09 22:04:55 -07:00
Spencer Whitehead
bd22323c09
chore: fix update-specs script, use builtin fetch ( #3528 )
2024-11-09 11:40:25 -07:00
Tony Brix
58d66e59d1
fix: escape html in renderer ( #3495 )
...
BREAKING CHANGE: escape html in renderers for all tokens.
2024-11-08 19:38:08 -07:00
Tony Brix
0afe87d7fb
fix: fix del with escaped tilde ( #3517 )
...
* fix: fix del with escaped tilde
* use rules to check for unescaped tilde
* add tests with spaces
2024-11-07 10:23:40 -07:00
Tony Brix
a612576ff6
fix: fix html comment after list ( #3518 )
2024-11-07 10:22:52 -07:00
Tony Brix
2b7efa8dda
fix: include single nested parens in emStrong link mask ( #3475 )
2024-10-14 22:24:34 -06:00
Tony Brix
9d7b728749
fix: fix html following list ( #3444 )
2024-09-08 09:25:54 -06:00
Tony Brix
9ed6456a37
fix: Don't replace tabs with spaces ( #3438 )
...
* fix: don't convert tabs to spaces
* test exact
* save nextLineWithoutTabs
* fix code
2024-09-03 18:06:32 -06:00
Tony Brix
3f0430a45e
fix: don't export block or inline ( #3427 )
2024-08-25 21:54:03 -06:00
Tony Brix
447f5af7e4
feat: add provideLexer and provideParser hooks ( #3424 )
2024-08-25 21:53:46 -06:00
Tony Brix
b5a50041ae
fix: allow async option to dictate type returned ( #3341 )
...
BREAKING CHANGE: throw an error if `async: false` is set when an extension sets `async: true`
2024-08-06 21:31:12 -06:00
Tony Brix
9b02e477c6
chore: consolidate eslint rules ( #3368 )
2024-07-14 18:54:46 -06:00
Tony Brix
62b941d417
chore: update eslint to v9 ( #3367 )
...
* chore: update eslint to v9
* remove compat
* pin typescript
2024-07-14 00:38:17 -06:00
Tony Brix
d28e4c65ea
fix: fix list item with blank first line ( #3351 )
...
* fix: fix list item with blank first line
* move blankline
2024-07-03 17:04:17 -07:00
Tony Brix
b17ff8be46
chore: fix rules scripts ( #3358 )
2024-07-03 07:20:41 -07:00
Tony Brix
520b9ad355
fix: fix this type in extension methods ( #3339 )
...
* fix: fix this type in extension methods
* fix this in old extension
2024-06-24 08:48:21 -06:00
Tony Brix
1ce59ea827
feat: Send token objects to renderers ( #3291 )
...
BREAKING CHANGE: extensions that change marked renderers will need to be updated and use new option `useNewRenderer`
2024-06-12 00:00:22 -06:00
Tony Brix
7ab818502e
fix: blockquote code continuation ( #3264 )
...
BREAKING CHANGE: add space token after blockquote and hr if there are multiple newlines
2024-06-11 23:53:43 -06:00
Tony Brix
e9f0eed707
fix: fix Setext continuation in blockquote ( #3257 )
2024-04-18 23:06:58 -06:00
Tony Brix
d848445072
fix: fix setext heading interupts ( #3210 )
2024-03-06 00:37:00 -07:00
Tony Brix
daa511d79d
chore: fix tests in node v21 ( #3209 )
...
* chore: fix tests in node v21
* chore: use latest for node version
2024-03-04 08:05:38 -07:00
Tony Brix
3d9017bb8e
fix: update to commonmark specs 0.31 ( #3176 )
...
BREAKING CHANGE:
- Update HTML block tags: add search, remove source
- Update punctuation to include unicode punctuation and symbol categories
- Update HTML comment to include <!--> and <!--->
2024-02-03 08:21:29 -08:00
Tony Brix
4826841bd6
feat: flatten childToken arrays ( #3172 )
2024-01-26 17:26:33 -07:00
Rahul Zhade
bf44ae85ed
fix: Fix ENOENT error message in CLI ( #3165 )
...
* Update utility to only output err path
* Fix failing tests
* Update code to explicitly check for presence of input
* Add input file not found test
* Make error messaging consistent
* fix bin test mocks
* add --input test
* Remove race condition causing exist check
* Update bin/main.js
Co-authored-by: Steven <steven@ceriously.com>
* Update tests
---------
Co-authored-by: Tony Brix <tony@brix.ninja>
Co-authored-by: Steven <steven@ceriously.com>
2024-01-26 17:26:11 -07:00
Tony Brix
faae24356a
feat: add processAllTokens hook ( #3114 )
2023-12-11 23:02:22 -07:00
Tony Brix
a28743391a
fix: allow Renderer class in marked.use ( #3118 )
2023-12-08 00:17:36 -07:00
Tony Brix
175fc0c321
fix: clean up rules so they can be typed ( #3087 )
...
BREAKING CHANGE: Lexer.rules object has been changed so it can be properly types. Some intermediate rules have been removed.
2023-11-28 20:56:27 -07:00
Tony Brix
edae309505
fix: fix marked types ( #3103 )
2023-11-28 20:51:36 -07:00
Tony Brix
014d4e61f6
fix: run spec tests with testutils ( #3017 )
...
BREAKING CHANGE: drop support for node v16
2023-11-10 22:49:27 -07:00
Tony Brix
f9d08cc1ef
fix: fix instance options sent to lexer and parser ( #3073 )
2023-11-10 00:41:04 -07:00
Tony Brix
54b6d1c47d
fix: fix emstrong unicode ( #3070 )
2023-11-01 22:27:17 -06:00
Tony Brix
a1034e6dd1
fix: fix empty heading breaks paragraph and table ( #3050 )
2023-10-27 23:10:35 -06:00
Susheel Thapa
7403ec0779
Chore: Typo fixed in multiple files ( #3045 )
...
Co-authored-by: Tony Brix <tony@brix.ninja>
2023-10-16 23:28:19 -06:00
Tony Brix
92033e57c8
fix: trim newline from blockquote token.text ( #3037 )
2023-10-13 13:52:19 -06:00
Tony Brix
587729f9a5
chore: remove node 4 polyfills ( #3014 )
2023-09-29 00:54:12 -06:00
Tony Brix
8ebbb3c3d4
fix: fix unicode emstrong ( #2989 )
2023-09-16 17:24:06 -06:00
Tony Brix
bcc3067087
fix: fix unexpected setext heading ( #2986 )
2023-09-15 13:22:12 -06:00
Tony Brix
0743d4adb4
fix: single column table ( #2985 )
2023-09-15 13:21:58 -06:00
Tony Brix
ccd02296b0
docs: remove slugger ( #2984 )
2023-09-14 13:20:54 -06:00
Tony Brix
9a2a4ad61a
fix: fix space removed after checkbox ( #2971 )
...
* fix: fix space removed after checkbox
* add loose test
2023-09-06 12:57:09 -06:00
Tony Brix
22ebdb2507
fix: remove deprecated options ( #2936 )
...
BREAKING CHANGE: deprecated options removed. See https://marked.js.org/using_advanced#options to see how to enable the removed options with extensions.
2023-09-02 22:02:24 -06:00
Tony Brix
65b6f146b6
add config option to bin/marked ( #2937 )
...
* add config option to bin/marked
* add tests
* add docs
* remove focused tests
2023-09-02 21:39:45 -06:00
Tony Brix
b6ee877d58
fix: ignore async: false when async: true is set by an extension ( #2920 )
2023-08-19 16:58:32 -06:00
Trevor Buckner
f3af23ec98
fix: Fix unicode Regex miscounting emoji length ( #2942 )
...
Many emojis are 2+ unicode bytes long. The \u tag which allows searching for punctuation also counts emojis as single chars. Slicing the strings into an array restores the correct character count.
2023-08-14 18:14:55 -06:00
Tony Brix
ff1602c178
fix: noImplicitAny: true ( #2891 )
2023-08-09 23:33:46 -06:00
Tony Brix
610bc45d96
fix: use rollup to output js files ( #2916 )
2023-08-07 16:50:43 -06:00
Tony Brix
63a839b8cb
fix: change defaults for mangle and headerIds to false ( #2890 )
...
BREAKING CHANGE: change defaults for mangle and headerIds to false
2023-08-06 17:48:30 -06:00
Florian Dreier
cb549065f1
fix: Migrate to Typescript ( #2805 )
...
BREAKING CHANGE: Migrate to Typescript
2023-07-29 00:31:34 -06:00
Tony Brix
353e13b479
feat: add Marked instance ( #2831 )
...
Co-authored-by: Steven <steven@ceriously.com>
2023-06-09 22:10:12 -05:00