1234567891011121314151617181920212223242526272829303132333435363738394041 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- // Return N time a string
- function ns(s, n) {
- return Array(n + 1).join(s);
- }
- exports.default = {
- onTitleStart: function (level) {
- return `${ns("=", level)} `;
- },
- onTitleEnd: function (level) {
- return this.onBL();
- },
- onParagraphStart: function () {
- return this.onSection();
- },
- onParagraphEnd: function () {
- return this.onSection();
- },
- onLinkStart: function (href) {
- return `link:${href}[`;
- },
- onLinkEnd: function () {
- return "]";
- },
- onListStart: function (level) {
- return "";
- },
- onListEnd: function () {
- return "";
- },
- onListItemStart: function (level) {
- return `${ns(".", level + 1)} `;
- },
- onListItemEnd: function () {
- return "";
- },
- onHR: function () {
- return "'''";
- }
- };
|