14 Commits

Author SHA1 Message Date
Tony Brix
62d3312b7a
fix: deprecate options (#2766)
BREAKING CHANGE: deprecate options
2023-05-01 23:30:06 -05:00
Tony Brix
9b452bc7f1
feat: add preprocess and postprocess hooks (#2730) 2023-03-22 00:48:56 -05:00
Tony Brix
36a2b639dc
fix: fix entity specs (#2652) 2022-11-20 10:05:26 -06:00
Jimmy Wärting
c26c4abb8c
chore: added some jsdoc (#2418)
* added some jsdoc

* Update src/helpers.js

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

* Update src/Renderer.js

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

Co-authored-by: Tony Brix <tony@brix.ninja>
2022-03-30 10:42:54 -05:00
CommanderRoot
f8a94bddf1
chore: replace deprecated String.prototype.substr() (#2413) 2022-03-19 00:11:14 -05:00
Zach Bialecki
ed66bf8abd
Add check in splitCells to prevent calling trim on undefined (#2372) 2022-01-26 22:07:01 -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
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
27070705d3
fix: remove string.repeat for ie11 (#1772) 2020-10-21 09:56:32 -05:00
Mateusz Burzyński
34df290fd0 Remove static properties from helpers 2019-12-04 21:14:51 +01:00
Tony Brix
b01aa4f5b4 clean up code 2019-11-07 12:46:32 -06:00
Tony Brix
a4652f1363 add license in rollup 2019-11-06 11:54:31 -06:00
Tony Brix
f9f5580c42 use commonjs and es6 classes 2019-11-06 11:11:06 -06:00
Tony Brix
099983ffcb move marked to es modules in ./src folder 2019-11-05 15:29:42 -06:00