390 Commits
Author SHA1 Message Date
Baksi b20f69f2b4 docs: list Inline Annotation under Known Extensions (#4256)
* docs: list Inline Annotation under known extensions

* Keep the extension table alphabetized
2026-11-21 23:47:25 -07:00
Ragib MRB 81592c3fdd docs: sync renderer and tokenizer lists and example output with current API (#4224) 2026-11-16 00:12:35 -07:00
NingLin Liu 1ae2ac9d7f docs: fix typo in demo comment (#4220) 2026-11-10 21:09:29 -07:00
dh 4bdd7e0c43 docs: add marked-pele to known extensions (#4170) 2026-10-26 08:57:27 -06:00
YIOYIO 3a11ad1483 fix(cli): await config functions before parsing (#4138) 2026-10-25 23:39:11 -06:00
Hsn 4b7b5b2d1e docs: show literal numeric entity tokenizer for non-HTML renderers (#4144) 2026-10-20 22:13:53 -06:00
xlb3055andbin 2f90743801 docs: correct the silent option description (#4150)
* docs: correct the silent option description

The options table said silent never throws and never logs. Top-level parse errors are returned as an HTML error message instead of being thrown. An unknown token type is logged with console.error and rendered as an empty string.

Signed-off-by: bin <178128333+xlb3055@users.noreply.github.com>

* docs: separate silent error paths

Caught parse errors are returned as HTML and are not logged. Lexer and parser recovery still logs with console.error.

Signed-off-by: bin <178128333+xlb3055@users.noreply.github.com>

---------

Signed-off-by: bin <178128333+xlb3055@users.noreply.github.com>
Co-authored-by: bin <178128333+xlb3055@users.noreply.github.com>
2026-10-19 19:35:37 -06:00
Tony Brix 5196d98839 docs: add commonmark and gfm as versions in demo (#4094) 2026-09-20 20:57:45 -06:00
Tony Brix de2320ac74 docs: add marked-gitlab to known extensions (#4092) 2026-09-20 20:57:15 -06:00
Ary Ribeiro 2a66071bfd docs: add AtlasDocs to the list of tools using Marked (#4093) 2026-09-12 15:41:40 -06:00
Tony BrixandSteven 0c6b2a671b docs: add adaptable bullet point (#4058)
* docs: add adaptable bullet point

* Zero deps

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

* Update docs/INDEX.md

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

---------

Co-authored-by: Steven <steven@ceriously.com>
2026-08-24 10:50:52 -06:00
MoonsvnLynandMoonsvnLyn ca00e952fc docs: replace nonexistent test:all script with npm test (#4054)
The contributor checklist references npm run test:all, but no such script exists in package.json

Co-authored-by: MoonsvnLyn <287222957+FirmaSpring@users.noreply.github.com>
2026-08-17 16:17:31 -06:00
Tony Brix 2e21cd3554 docs: move theme button to menu (#4043) 2026-08-04 16:38:19 -06:00
Tony Brix 71caeed94b docs: add known extension search (#3990) 2026-06-10 22:30:37 -06:00
x@01 e3bb416098 docs: add @webc.site/math-marked to known extensions (#3989) 2026-06-07 21:14:33 -06:00
Maddy Guthridge 7d9b17e8cd chore(docs): fix typo in package links (#3975)
Fix typo in package links
2026-05-18 09:04:23 -06:00
Tony Brix 17c06e9008 chore: fix building license for docs (#3952) 2026-04-19 20:25:53 -06:00
Maddy Guthridge baa78a5e6a docs: Add marked-abc to known extensions list (#3903) 2026-02-28 08:35:18 -07:00
No jae gunandnjg7194 65d7c80de0 docs: clarify extension terminology ambiguity (#3881)
docs: clarify 'extension' terminology ambiguity

Add a terminology note section to explain the difference between:
- MarkedExtension: the configuration object passed to marked.use()
- TokenizerAndRendererExtension: custom syntax definitions in the extensions array

This addresses the confusion described in #3182 where 'extensions' is used
with two different meanings throughout the documentation.

Fixes #3182

Co-authored-by: njg7194 <njg7194@github.com>
2026-02-07 20:27:44 -07:00
Eric Lowry 6b585065fc docs: add Marked Responsive Images extension to documentation (#3886)
* Add Marked Responsive Images extension to documentation

Added the **Marked Responsive Images** to the **Known Extensions** list in the documentation.

* Fix table formatting in USING_ADVANCED.md

Removed trailing periods for **Known Extensions** descriptions for better consistency.
2026-02-05 22:03:58 -07:00
Tony Brixandgemini-code-assist[bot] 220b32b56f docs: Add token position to known extensions (#3875)
* docs: Add token position to known extensions

* Update description

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-21 11:26:13 -07:00
e145859476 docs: browser example for marked on page data (#3864)
* docs: browser example for marked on page data

* Apply suggestions from code review

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* docs: browser example to USING_ADVANCED.md

* Update docs/USING_ADVANCED.md

Applied suggestion. Thank you.

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

* docs: update menu, close user ex details

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Tony Brix <tony@brix.ninja>
2025-12-24 19:57:14 -07:00
Samar JoshiandSteven d84e021742 chore(docs): prevent theme flash by respecting system preference on initial load (#3840)
* fix:system pref fix

* fix: fixes demo page light mode error

* Update docs/demo/demo.js

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

* Update docs/js/index.js

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

* Update docs/demo/demo.js

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

---------

Co-authored-by: Steven <steven@ceriously.com>
2025-12-22 10:30:36 -05:00
Samar Joshi 23b9d0137f docs: Modernize Docs UI with Tailwind, Dark Mode, and Improved Layout (#3814)
* fix: fix link issues of _doc.html

* fix:wrong changes done

* docs:Improved the UI for Docs page

* docs:final changes to UI redesign

* fix:fixes dark light mode toggle in demo page

* fix: fixed linting error after dark mode changes

* feat:add mobile responsive design

* fix: fix broken links of nav bar

* fix:dark mode flash fix and backward url compatibility

* fix:demo page fix

* fix: fix linting error

* fix:clean url and hamburger menu button

* fix:fix formatting issues and more device inclusive responsive design

* fix: reverts build.js to original state
2025-11-09 17:23:28 -07:00
Tisha Jain 28528ff259 docs: Add dark mode (#3794) 2025-10-17 00:49:30 -06:00
Jonatan Schroeder cd2b5f4797 feat: add emStrongMask hook (#3749)
* Add hook to mask input for em/strong processing in extension

* Use passthrough hook instead of tokenizer-specific hook

* Remove deprecated items

* Ensure passthrough hook does not create promise

* Add test for combining hooks and async
2025-09-14 08:27:27 -06:00
Alvaro Tinoco 7b2d4307a3 docs: add marked-jira to known extensions (#3753) 2025-09-04 11:59:49 -06:00
Tony Brix 1d687e05ae docs: add marked-html-renderer to known extensions (#3724) 2025-07-17 08:57:26 -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
Maddy Guthridge 045ca84cfe Document risk of adding infinite extensions when using global marked instance (#3702)
Document risk of adding infinite extensions when using global marked instance.

Resolves #3701
2025-05-28 05:50:31 -06:00
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
StevenandTony Brix 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 BrixandSteven 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