Commit Graph
61 Commits
Author SHA1 Message Date
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 ccd02296b0 docs: remove slugger (#2984) 2023-09-14 13:20:54 -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
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
aaronsolomon98andAaron Solomon f4834ca08f chore(docs): Modify Extension Docs (#2918)
Co-authored-by: Aaron Solomon <aaron.solomon@capitalone.com>
2023-08-05 00:36:17 -06:00
Tony BrixandSteven 353e13b479 feat: add Marked instance (#2831)
Co-authored-by: Steven <steven@ceriously.com>
2023-06-09 22:10:12 -05:00
Tony Brix fa21b9f60a feat: add block param to html renderer (#2768) 2023-05-01 23:31:40 -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 BrixandSteven 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
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 BrixandSteven 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
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
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
Tony Brix 9c312b2cb1 chore(docs): fix extension docs indentation (#2178) 2021-08-22 18:57:14 -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 da1c57f74c chore(docs): add extensions link to nav links (#2105) 2021-06-16 09:55:06 -05:00
Trevor BucknerandTony Brix 5be9d6d70e feat: Custom Tokenizer/Renderer extensions (#2043)
Co-authored-by: Tony Brix <tony@brix.ninja>
2021-06-15 18:22:00 -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
Steven 010c95f090 Use cleanUrls 2020-08-29 17:55:07 -04:00
Steven 6789214c5c Fix links to other documents 2020-08-15 19:35:00 -04:00
CallumandSteven 0c415fd82e update docs example to be clearer
Co-authored-by: Steven <steven@ceriously.com>
2020-07-15 08:02:55 +01:00
flouc001 710658cb61 use options param, update docs, update tests 2020-07-12 19:38:37 +01:00
flouc001 2290f677c9 update docs 2020-07-11 09:36:24 +01:00
Tony Brix acc84eb6a0 add walkTokens to docs 2020-05-12 19:57:28 -05:00
Tony Brix 9721105c3f update docs 2020-04-23 23:36:54 -05:00
Tony Brix d5de6af1f6 add marked.use section to docs 2020-04-20 10:50:09 -05:00
Tony Brix 1050460737 Fix docs 2020-04-19 01:38:41 -05:00
Tony Brix 07f2b334f0 return false to use last renderer/tokenizer 2020-04-19 01:08:54 -05:00
Tony Brix 07510c9301 update docs with marked.use 2020-04-19 00:38:19 -05:00
Tony Brix b767ede031 Merge branch 'tokenizer' of https://github.com/UziTech/marked into tokenizer 2020-04-15 00:04:09 -05:00
Tony Brix dfbb0161f8 fix docs 2020-04-15 00:02:18 -05:00
Tony BrixandSteven 4aecab365e Update docs/USING_PRO.md
Co-Authored-By: Steven <steven@ceriously.com>
2020-04-14 19:52:44 -05:00
Tony Brix dd8e549087 add mangle smartypants examples 2020-04-14 16:53:06 -05:00
Tony Brix 0f0586094b fix example 2020-04-14 16:43:02 -05:00
Tony Brix 1f5a621dab spelling 2020-04-14 16:40:39 -05:00
Tony Brix 4117ba271f move smartypants, mangle, and rules to lexer 2020-04-14 16:40:06 -05:00
Tony Brix 4947ce5078 only send needed variables to tokenizer 2020-04-14 13:29:51 -05:00
Tony Brix f5d67a5ea3 fix typo 2020-04-08 13:06:13 -05:00
Tony Brix b63156f938 update docs 2020-04-08 13:04:38 -05:00
Tony Brix 77838e708e update docs 2020-04-02 01:05:04 -05:00
Tony Brix a82d1c6077 update docs 2020-04-02 00:24:21 -05:00
Tony Brix 32d61f4668 update docs 2019-11-06 16:03:39 -06:00