Ragib MRB
dd9fbbe8e4
fix: keep --option=value values attached to their option and check own defaults in CLI ( #4265 )
2026-11-27 09:14:27 -07:00
Zhenxian Liang and 梁镇贤
6c2a5ab48d
fix: wait for CLI error output before exiting ( #4263 )
...
Co-authored-by: 梁镇贤 <251972984+xiaoyao-666-coder@users.noreply.github.com >
2026-11-20 19:20:48 -07:00
Ragib MRB
502e658115
fix: reject CLI options missing their values ( #4261 )
2026-11-20 00:44:08 -07:00
generaltony007 and GeneralTony007
a1ddc722e7
fix: honor the CLI end-of-options marker ( #4230 )
...
* fix: honor the CLI end-of-options marker
Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com >
* test: cover hyphen-prefixed input files after --
Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com >
* docs: document the CLI option terminator
Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com >
---------
Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com >
2026-11-17 08:24:41 -07:00
Panda Xiong and pandaxiong0729
b535046bf5
fix(cli): wait for stdout before exiting ( #4197 )
...
Co-authored-by: pandaxiong0729 <239575197+pandaxiong0729@users.noreply.github.com >
2026-11-16 09:25:08 -07:00
fading
9470e8f719
fix(cli): honor defaults and config when outputting tokens ( #4146 )
...
* fix(cli): honor defaults and config when outputting tokens
* fix(cli): share configured options between lexer and parser
2026-11-02 07:50:30 -07:00
YIOYIO
3a11ad1483
fix(cli): await config functions before parsing ( #4138 )
2026-10-25 23:39:11 -06:00
Huanyi Xie
e7c4f64c43
fix(cli): create no-clobber output files atomically ( #4135 )
2026-10-25 23:34:24 -06:00
hhang and Your Name
ec3a4e511a
fix(cli): honor an explicitly empty string input ( #4113 )
...
Co-authored-by: Your Name <you@example.com >
2026-10-06 08:56:05 -06:00
pengboyu-dev
c61543ed0f
fix: load CLI configs with top-level await ( #4100 )
2026-09-28 21:03:58 -06:00
Tony Brix
11adb697ee
fix: fix cli not reading stdin ( #3967 )
2026-05-18 23:14:06 -06:00
Nandan
73e1f3f88e
fix(cli): use file URL for config import ( #3923 )
2026-04-05 00:00:49 -06:00
Nandan
a1c2617a37
fix(cli): honor positional input file ( #3922 )
2026-04-05 00:00:28 -06:00
Ziad El Khoury Hanna
ee6b45fa00
Update copyright notices ( #3818 ) ( #3820 )
2025-10-30 08:56:59 -06:00
Tony Brix
0a35d8f28b
fix: remove cjs build & update min node to 20 ( #3687 )
...
BREAKING CHANGE:
- minify ./lib/marked.esm.js and ./lib/marked.umd.js
- remove ./marked.min.js use ./lib/marked.umd.js instead
- remove ./lib/marked.cjs
- update minimum supported node version to 20 to support require('marked.esm.js'). see nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require
2025-06-26 22:44:11 -06:00
Lucas Terracino
b1fd3eafd8
fix: kill SIGINT signal at man for marked --help ( #3483 )
2024-10-14 22:24:19 -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
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
b8adee7f7c
feat: add --no-clobber option to CLI ( #3025 )
...
Co-authored-by: skoriop <karthikp.ivy@gmail.com >
Co-authored-by: Steven <steven@ceriously.com >
2023-10-04 20:05:55 -06:00
Tony Brix
43643b3a00
fix: marked --help ( #2991 )
2023-09-18 11:37:43 -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
Florian Dreier
cb549065f1
fix: Migrate to Typescript ( #2805 )
...
BREAKING CHANGE: Migrate to Typescript
2023-07-29 00:31:34 -06:00
Jimmy Wärting and Tony Brix
c26c4abb8c
chore: added some jsdoc ( #2418 )
...
* added some jsdoc
* Update src/helpers.js
Co-authored-by: Tony Brix <tony@brix.ninja >
* Update src/Renderer.js
Co-authored-by: Tony Brix <tony@brix.ninja >
Co-authored-by: Tony Brix <tony@brix.ninja >
2022-03-30 10:42:54 -05:00
Tony Brix
ab2977a336
fix: fix cli ( #2294 )
2021-11-19 08:07:26 -06:00
Ben McCann
4afb228d95
fix: Convert to ESM ( #2227 )
...
BREAKING CHANGE:
- Default export removed. Use `import { marked } from 'marked'` or `const { marked } = require('marked')` instead.
- `/lib/marked.js` removed. Use `/marked.min.js` in script tag instead.
- When using marked in a script tag use `marked.parse(...)` instead of `marked(...)`
2021-11-02 09:32:17 -05:00
cancerberosgx
3477a0944b
marked --help
2019-12-26 16:09:02 -03:00
Tony Brix
28f62c91a7
include src/ in npm package
2019-11-06 14:58:27 -06:00
Tony Brix
3dff1e4725
fix eslint config
2019-11-05 15:31:11 -06:00
Tony Brix
1a1dd43ab1
space-before-function-paren never
2019-05-03 20:59:44 -05:00
Tony Brix
bc835ae99e
simplify eslint config
2019-05-03 20:59:44 -05:00
Tony Brix
d9f22d2726
separate eslint config
2019-05-03 20:59:43 -05:00
Tony Brix
acff65bf4e
add --version to marked bin
2019-03-12 09:07:26 -05:00
Mateus Craveiro
327c9d834b
Pretty print ENOENT errors on cli
2018-12-20 13:44:44 -02:00
Federico Soave
9fcd4503da
Merge branch 'master' into fixes_992
2018-05-07 16:26:05 +02:00
Tony Brix
25c456a5e7
lint
2018-04-05 00:00:37 -05:00
Tony Brix
f03a576063
prefer input
2018-04-04 23:53:53 -05:00
Tony Brix
0dcb02f643
allow string arg
2018-04-04 23:53:53 -05:00
Tony Brix
a5eb9c0c86
remove err
2018-04-01 23:16:01 -05:00
Tony Brix
ada4a1d8c0
lint all js files
2018-03-29 13:00:59 -05:00
Federico Soave
4a2c62192a
use child_process.stdio instead of the deprecated customFds to spawn man
2018-01-15 02:22:41 +01:00
Federico Soave
823a080420
print help message when man is unavailable
2018-01-09 15:07:01 +01:00
Christopher Jeffrey
cf5e9edbf6
use --test for running tests from bin/marked.
2013-05-28 20:37:59 -05:00
Christopher Jeffrey
6246784914
allow options for tests and benchmarks.
2013-02-07 04:27:39 -06:00
Christopher Jeffrey
2b688ac505
improve option parsing in bin/marked.
2013-01-09 20:47:09 -06:00
Christopher Jeffrey
6e37241dbc
bin/marked
2013-01-05 07:24:32 -06:00
Christopher Jeffrey
af1bee71cd
refactor bin/marked and man page.
2013-01-03 07:24:20 -06:00
Christopher Jeffrey
7aa7934c90
add gfm line breaks.
2013-01-03 02:21:44 -06:00
Christopher Jeffrey
b804e8ed5b
fix bin/marked options
2012-03-10 16:33:51 -06:00
Christopher Jeffrey
79975978b0
add options: pedantic, gfm, sanitize.
2012-02-19 19:15:11 -06:00