UNPKG

epic-formulae

Version:

Simple data store to house epic formulae

19 lines (18 loc) 421 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Document { constructor(title) { this.elements = []; this.elements.push(`# ${title}`); } heading(text) { this.elements.push(`## ${text}`); } paragraph(text) { this.elements.push(text); } toString() { return this.elements.join('\n\n'); } } exports.default = Document;