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
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
Karthik Prakash
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
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
Christopher Jeffrey
504bf0b526
small cleanup
2012-01-30 12:11:42 -06:00
Christopher Jeffrey
5ab3970e95
refactor bin/marked
2012-01-28 13:28:48 -06:00
Christopher Jeffrey
623f71a6b9
add man page, refactor cli, change package.json
2012-01-27 16:31:41 -06:00
Christopher Jeffrey
714080ef9e
move some tests around, whitespace
2012-01-14 03:27:06 -06:00
Christopher Jeffrey
a270bed714
bin: stringify token stream instead of inspecting, remove fix
2012-01-03 03:44:48 -06:00
Christopher Jeffrey
ec884486d0
quick fix for bin
2011-12-04 22:07:19 -06:00
Christopher Jeffrey
c8f26acd12
improve bin/marked, slice off trailing line feeds from code
2011-12-04 21:47:31 -06:00
Christopher Jeffrey
25e75a5735
use util.inspect instead of json in bin/marked
2011-10-22 08:44:15 -05:00
Christopher Jeffrey
77f916c911
more bin revisions
2011-10-15 17:34:42 -05:00
Christopher Jeffrey
094db6566e
fix bin
2011-10-14 18:30:42 -05:00
Christopher Jeffrey
57eabbad80
usage
2011-10-14 17:29:15 -05:00
Christopher Jeffrey
9dba12bf12
less confusing
2011-10-14 16:58:23 -05:00
Christopher Jeffrey
00a9c784f3
usage, fix input arg
2011-10-14 16:54:08 -05:00
Christopher Jeffrey
37afe53bb3
better bin
2011-10-14 16:36:14 -05:00
Christopher Jeffrey
6c6d91f24e
bin
2011-08-15 20:38:13 -05:00