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
Tony Brix
ff663bc5c5
chore(deps): merge demo options with defaults ( #2660 )
...
chore(demo): merge demo options with defaults
2022-11-26 09:35:48 -06:00
Tony Brix
715f88aa9a
docs: add cli extension docs ( #2632 )
2022-10-31 18:07:17 -05:00
Danang Estutomoaji
1d7f03910e
docs: added copy to clipboard for each code block ( #2616 )
...
Co-authored-by: Tony Brix <tony@brix.ninja>
2022-10-31 09:58:42 -05:00
Eric Hsieh
2c9728da0c
Update outdated link ( #2625 )
2022-10-26 09:42:48 -05:00
Matija Gašpar
530b9ae0eb
docs: Add note about zero width unicode characters ( #2139 ) ( #2605 )
2022-10-11 09:24:48 -04:00
Mayank Singh Tomar
05114302d1
docs: Adding Tools using Marked in docs ( #2603 )
...
* Updating INDEX.md
* Update _document.html
Adding tools to navigation.
2022-10-06 08:06:28 -05:00
Ritesh Singh
f51a7765fb
docs: fix grammar ( #2602 )
...
Corrected the grammatical error.
2022-10-04 01:03:57 -05:00
mayank singh tomar
f6ba2e39f7
fix: remove smartLists from docs and code ( #2596 )
...
* Removing smarLists
for issue #2582
* Removing smartLists
for issue #2582
* removing smarLists
for issue #2582
* removing smartLists
for issue #2582
* removing samrtLists
for issue #2582
* removing smartLists
for issue #2582
* removing smartLists
for issue #2582
2022-09-30 20:32:10 -05:00
Tony Brix
7c907cbd76
docs: add known extensions ( #2588 )
2022-09-19 20:17:04 -05:00
azmy60
0dcda393dd
docs: Info to install @types/marked for ts projects ( #2577 )
2022-09-12 08:15:41 -05:00
Tony Brix
994b2e6127
feat: add async option ( #2474 )
...
* fix: return values from walkTokens
* docs: add async docs
* test: add async test
* docs: add nav to async
* Update docs/USING_PRO.md
Co-authored-by: Steven <steven@ceriously.com>
* test: expect promise
* Update docs/USING_ADVANCED.md
Co-authored-by: Steven <steven@ceriously.com>
Co-authored-by: Steven <steven@ceriously.com>
2022-08-30 09:36:16 -05:00
Altilunium
eb35814f0c
docs: Add new Users : rtnF md ( #2557 )
...
Update AUTHORS.md
2022-08-21 11:19:21 -05:00
vhs
d27be83de8
docs: add js-xss to sanitizer warning ( #2484 )
...
close : #2482
2022-05-29 00:20:40 -05:00
FHantke
74ccecf771
chore(docs): add a secure example to the documentation. ( #2462 )
...
* Add a sanitized example
* Remove !
* move example below warning
Co-authored-by: Florian Hantke <florian.hantke@cispa.de>
2022-05-07 11:37:21 -05:00
Trevor Buckner
a784f72450
chore: clarify custom extension RegEx anchoring to string start ( #2415 )
2022-03-21 11:02:59 -05:00
Chell
e709bd7ff3
chore(docs): rename inconsistent function ( #2316 )
2021-12-09 08:39:27 -06:00
Alexander Cerutti
6ac4d82254
chore(docs): Improved CLI Examples ( #2303 )
2021-11-24 15:19:58 -06:00
Tony Brix
6cba7b4b12
chore(docs): remove nptable tokenizer from docs ( #2293 )
2021-11-18 11:35:18 -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
Tony Brix
2da5885989
fix: walkTokens uses marked as this ( #2251 )
2021-10-24 00:03:59 -05:00
Andrew
e583f46f0d
chore(docs): Use langPrefix
in highlight.js
example. ( #2176 )
...
To properly integrate [highlight.js](https://github.com/highlightjs/highlight.js/ ) when using `marked.setOptions`, you need to leverage `langPrefix` to add an additional `hljs` class to the top-level `<code>` element which will be rendered.
Closes #2171
2021-08-23 13:51:52 -05:00
Tony Brix
9c312b2cb1
chore(docs): fix extension docs indentation ( #2178 )
2021-08-22 18:57:14 -05:00
Alasdair
6fa4842920
chore(docs): Add note about supported versions ( #1938 )
2021-08-16 09:19:44 -05:00
Trevor Buckner
288f1cbe2f
Tokenizers lex their own child tokens ( #2124 )
...
BREAKING CHANGES:
- Tokenizers will create their own tokens with `this.lexer.inline(text, tokens)`. The `inline` function will queue the token creation until after all block tokens are rendered.
- `nptable` tokenizer is removed and merged with `table` tokenizer.
- Extensions tokenizer `this` object will include the `lexer` as a property. `this.inlineTokens` becomes `this.lexer.inline`.
- Extensions parser `this` object will include the `parser` as a property. `this.parseInline` becomes `this.parser.parseInline`.
- `tag` and `inlineText` tokenizer function signatures have changed.
2021-08-02 14:12:43 -05:00
Tony Brix
22ead33a0f
chore(docs): fix async highlight example ( #2123 )
2021-06-30 22:42:06 -04:00
Tony Brix
da1c57f74c
chore(docs): add extensions link to nav links ( #2105 )
2021-06-16 09:55:06 -05:00
Trevor Buckner
5be9d6d70e
feat: Custom Tokenizer/Renderer extensions ( #2043 )
...
Co-authored-by: Tony Brix <tony@brix.ninja>
2021-06-15 18:22:00 -05:00
Steven
65c3f77f3f
docs: update highlight.js usage ( #2003 )
2021-04-11 22:37:55 -05:00
Tony Brix
e8ddad0971
docs: fix demo initial options not loaded ( #1983 )
2021-03-25 08:51:34 -05:00
Ulisse mini
29dbc21d20
docs: warn about broken inline latex example ( #1949 )
...
The docs don't mention how the latex example won't actually work with inline latex, ie. `foo $bar$ baz`
2021-02-19 10:04:41 -06:00
Tony Brix
3ad3b10fb1
docs: update inline tokenizer docs with emStrong
( #1928 )
2021-02-07 20:26:57 -06:00
Trevor Buckner
f848e77039
fix: Join adjacent inlineText tokens ( #1926 )
2021-02-07 16:22:47 -06:00
Tony Brix
a775f1b3f4
chore(demo): add links to other demos ( #1852 )
2020-11-30 08:47:12 -06:00
Tony Brix
803a6a960a
chore(dev-deps): remove eslint-plugin-standard ( #1849 )
2020-11-22 23:19:28 -06:00