* 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>
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>
* 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.
* 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>
* 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
* 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
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
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).