foremark
Version:
A technology for writing semi-plain text documents that extends upon the concept of Markdeep.
21 lines • 851 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.CITE_ID_RE = /[^[\]<>]+/;
exports.ENDNOTE_ID_RE = /[^[\]<> :\t]+/;
exports.FIGURE_ID_RE = /[^[\]<>\t]+[ :][^[\]<> :\t]+/;
exports.FLOATING_SIZE_RE = /(?:\^|!!?)/;
function parseFloatingSize(s) {
switch (s) {
case '^': return null;
case '!': return 'large';
case '!!': return 'full';
default: throw new Error();
}
}
exports.parseFloatingSize = parseFloatingSize;
/** The URL and attributes part of the media tag. */
exports.MEDIA_PARAM_RE = /("[^"<>]*"|[^"\s<>)]+)(\s+[^\)]*?)?/;
// ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^
// URL (maybe quoted) unvalidated attribs
// e.g., ` class="a"`
//# sourceMappingURL=common.js.map
;