360 Commits

Author SHA1 Message Date
Vladimir
d120e014d3
chore(docs): Add marked-typograf extension to the docs (#3649)
add a new extension to the list
2025-03-31 00:31:10 -06:00
chirsz
f92bdceb2c
chore(docs): add marked-cjk-breaks to "Known Extensions" (#3629) 2025-02-28 12:18:41 -07:00
Steven
3da6e4712d
chore(docs): add passing test results to documentation (#3541)
* chore(docs): add test results to documentation

* chore: apply suggestion

Co-authored-by: Tony Brix <tony@brix.ninja>

* fix: lint

---------

Co-authored-by: Tony Brix <tony@brix.ninja>
2024-11-24 15:31:41 -05:00
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
dc4ae3be8d
docs: fix indexOf typo (#3526) 2024-11-08 19:17:46 -07:00
Tony Brix
a73f85ed25
docs: Marked extension template docs (#3523)
* docs: add information about marked extension template

* add note
2024-11-07 10:14:26 -07:00
CNOCTAVE
69e78453df
docs: Add a List of Tools Using Marked (#3511)
Update INDEX.md
2024-10-29 06:09:05 -06:00
Linux编程科普
17ca80ca27
docs: add note about marked.use in loops (#3492)
* Update USING_PRO.md

* Update USING_PRO.md

* Update USING_ADVANCED.md

* Update USING_ADVANCED.md
2024-10-19 23:19:38 -06:00
Arnold Daniels
2898bf01b5
docs: Add marked-more-lists to known extensions in documentation (#3480)
Add `marked-more-lists` to known extensions

The More Lists extension adds support to Marked for alphabetic and roman numeral ordered lists, and non-sequential lists (skipping numbers).
2024-10-09 14:04:49 -06:00
Tony Brix
447f5af7e4
feat: add provideLexer and provideParser hooks (#3424) 2024-08-25 21:53:46 -06:00
Tony Brix
e64f226539
fix: Remove useNewRenderer (#3342)
BREAKING CHANGE: Remove old renderer
2024-08-06 21:31:52 -06:00
Tony Brix
ead7af34a5
docs: fix heading renderer example (#3392) 2024-08-06 21:28:11 -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
642c30c81f
docs: add useNewRenderer note (#3340)
* docs: add useNewRenderer note

* Apply suggestions from code review

---------

Co-authored-by: Steven <steven@ceriously.com>
2024-06-24 08:47:38 -06:00
Rotzbua
abb5204892
chore(docs): add removed option smartLists (#3332) 2024-06-18 01:19:17 -06:00
Filip Halas
70bb55e0af
docs: fix docs (#3325)
Update USING_PRO.md
2024-06-13 07:17:24 -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
Louis Poirier
481ac3bb17
Update Lexer section in USING_PRO.md (#3317) 2024-06-09 20:54:31 -06:00
Beni Arisandi
91ee15b2d4
docs: add marked-plaintify to known extensions (#3265) 2024-04-22 18:55:59 -06:00
Beni Arisandi
1c2593f81e
docs: add marked-shiki to known extensions (#3197) 2024-02-19 10:30:44 -05: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
4f3304018e
docs: add docs for esm in browser (#3107) 2023-11-28 08:12:06 -07:00
Beni Arisandi
e8ec64fb10
docs: add marked-directive to known extensions (#3058) 2023-10-26 00:39:00 -06:00
Beni Arisandi
1d93e55e51
docs: add marked-alert to known extensions (#3051) 2023-10-22 21:56:46 -06:00
Beni Arisandi
3aa1742709
docs: add marked-footnote to known extensions (#3034) 2023-10-10 09:23:28 -06:00
Tony Brix
34f47b1b8f
docs: add marked-smartypants-lite to known extensions (#3016) 2023-10-05 13:03:07 -06:00
Beni Arisandi
1050077d98
docs: add some extensions to known extensions (#3026)
* docs(using_advanced): adds `codefence` related extensions to known extensions

Added:

- `marked-code-format` for formatting code blocks using Prettier
- `marked-code-jsx-renderer` for rendering JSX code blocks using a custom renderer and components
- `marked-code-preview` for transforming code blocks into code previews

* docs(using_advanced): add `marked-sequential-hooks` to known extensions

* chore: typo

* chore: enclose package name in backticks

Co-authored-by: Tony Brix <tony@brix.ninja>

* chore: enclose package name in backticks

Co-authored-by: Tony Brix <tony@brix.ninja>

---------

Co-authored-by: Tony Brix <tony@brix.ninja>
2023-10-04 21:58:33 -06:00
Angad Sethi
6f4afade95
docs: fix typo in USING_PRO (#3000)
Fix two typos in `USING_PRO` doc.
2023-09-21 08:11:44 -06:00
Tony Brix
a942ef3758
docs: remove @types/marked (#2998) 2023-09-20 08:21:08 -06:00
Tony Brix
ccd02296b0
docs: remove slugger (#2984) 2023-09-14 13:20:54 -06:00
Tony Brix
7d95a91093
fix: Clean up files in repo (#2963)
BREAKING CHANGE:

- remove built files from git repo.
  - If you need to use the latest version of marked on the web you can use a cdn to get marked.min.js from npm:
  - `https://cdn.jsdelivr.net/npm/marked/marked.min.js`
2023-09-09 17:51:42 -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
Travis Briggs
4e6acc8b85
docs: Tweaks to docs to make them clearer, regarding hooks and options to lexer/parser (#2946)
* Tweaks to docs to make them clearer, regarding hooks and options to lexer/parser

* Remove extraneous commas

* Update description of lexer/renderer options
2023-08-16 13:44:41 -06:00
Tony Brix
89ddeec2a0
docs: fix older versions in demo (#2934) 2023-08-11 21:46:54 -06:00
Tony Brix
71cc7b9d8b
docs: update docs (#2928)
Co-authored-by: Steven <steven@ceriously.com>
2023-08-10 21:25:40 -06:00
aaronsolomon98
f4834ca08f
chore(docs): Modify Extension Docs (#2918)
Co-authored-by: Aaron Solomon <aaron.solomon@capitalone.com>
2023-08-05 00:36:17 -06:00
Герхард PICCORO Lenz McKAY
48daab13f1
docs: Add raito to the list of tools (#2878)
Introducing the wiki raito rendering engine among utilities that use markup.js, as a powered wiki engine, which competes strongly against other engines such as github wiki and mediawiki itself
2023-07-15 18:50:42 -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
dependabot[bot]
7d111d8fba
chore(deps-dev): Bump eslint-config-standard from 17.0.0 to 17.1.0 (#2837)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tony Brix <tony@brix.ninja>
2023-06-06 00:39:57 -05:00
Florian Dreier
72ee2d620a
fix: Replace custom repeatString function with repeat() (#2820)
chore: Replace custom repeatString functions with ECMAScript String.repeat()
2023-05-30 17:19:19 -05:00
Tony Brix
fa21b9f60a
feat: add block param to html renderer (#2768) 2023-05-01 23:31:40 -05:00
Tony Brix
62d3312b7a
fix: deprecate options (#2766)
BREAKING CHANGE: deprecate options
2023-05-01 23:30:06 -05:00
Stephen Hutchings
ed48aa1e72
chore(docs): update renderer docs (#2783) 2023-04-22 02:17:35 -05:00
Tony Brix
9b452bc7f1
feat: add preprocess and postprocess hooks (#2730) 2023-03-22 00:48:56 -05:00
Tony Brix
042dcc5431
fix: always return promise if async (#2728)
* fix: always return promise if async

* docs: await walktokens when async

* docs: walktokens async

Co-authored-by: Steven <steven@ceriously.com>

* return rejected promise on error

---------

Co-authored-by: Steven <steven@ceriously.com>
2023-03-21 19:51:45 -05:00
Paweł Grimm
6164fb62c0
docs: Explain how to get an instance of Slugger (#2750) 2023-03-07 12:00:49 -06:00
Tony Brix
df9f2d351f
docs: Add marked-emoji to known extensions (#2693) 2023-01-01 21:29:23 -06:00
Wyatt LeFevre
2d5af8601f
clarify dropdown location (#2688)
Co-authored-by: Wyatt LeFevre <wyatt@Wyatts-MacBook-Pro.local>
2022-12-17 11:33:50 -06:00