Skip to content

Commit

Permalink
V2.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Edaz <[email protected]>
  • Loading branch information
edazpotato committed Dec 16, 2021
1 parent 00ed8b6 commit dbb3cbc
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 33 deletions.
8 changes: 8 additions & 0 deletions packages/marked-renderer-text/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import marked from "marked";

export = RenderToText;

declare class RenderToText extends marked.Renderer {
fancyMode: boolean;
constructor(fancyMode?: boolean, options?: marked.marked.MarkedOptions);
}
4 changes: 3 additions & 1 deletion packages/marked-renderer-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const { Renderer } = require("marked");
module.exports = class RenderToText extends Renderer {
constructor(fancyMode, options) {
if (typeof fancyMode != "boolean") {
fancyMode = false;
this.fancyMode = false;
} else {
this.fancyMode = fancyMode;
}
super(options);
}
Expand Down
35 changes: 7 additions & 28 deletions packages/marked-renderer-text/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions packages/marked-renderer-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@
"version": "2.0.0",
"author": "Edazpotato <[email protected]> (https://edaz.codes/)",
"main": "index.js",
"types": "index.d.ts",
"repository": "edazpotato/marked-render-to-text",
"peerDependencies": {
"marked": "^4.0.7"
},
"keywords": [
"marked",
"markdown",
"text",
"plain-text",
"renderer"
],
"license": "MIT"
"license": "MIT",
"peerDependencies": {
"marked": "^4.0.7"
},
"devDependencies": {
"@types/marked": "^4.0.1"
}
}

0 comments on commit dbb3cbc

Please sign in to comment.