MCPcopy Create free account
hub / github.com/Hexlet/patterns / constructor

Method constructor

content/adapter/javascript/class/parsers/Showdown.js:4–6  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

2
3export default class {
4 constructor(options = {}) {
5 this.converter = new showdown.Converter(options);
6 }
7
8 render(text) {
9 return this.converter.makeHtml(text);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected