Browse Source

Cleanup internal exports

pull/979/head
Vitaly Puzrin 1 year ago
parent
commit
5578e698af
  1. 19
      lib/common/utils.mjs
  2. 2
      lib/helpers/index.mjs
  3. 4
      lib/index.mjs
  4. 2
      test/utils.mjs

19
lib/common/utils.mjs

@ -311,22 +311,3 @@ export {
escapeRE, escapeRE,
normalizeReference normalizeReference
} }
export default {
lib,
assign,
isString,
has,
unescapeMd,
unescapeAll,
isValidEntityCode,
fromCodePoint,
escapeHtml,
arrayReplaceAt,
isSpace,
isWhiteSpace,
isMdAsciiPunct,
isPunctChar,
escapeRE,
normalizeReference
}

2
lib/helpers/index.mjs

@ -4,7 +4,7 @@ import parseLinkLabel from './parse_link_label.mjs'
import parseLinkDestination from './parse_link_destination.mjs' import parseLinkDestination from './parse_link_destination.mjs'
import parseLinkTitle from './parse_link_title.mjs' import parseLinkTitle from './parse_link_title.mjs'
export default { export {
parseLinkLabel, parseLinkLabel,
parseLinkDestination, parseLinkDestination,
parseLinkTitle parseLinkTitle

4
lib/index.mjs

@ -1,7 +1,7 @@
// Main parser class // Main parser class
import utils from './common/utils.mjs' import * as utils from './common/utils.mjs'
import helpers from './helpers/index.mjs' import * as helpers from './helpers/index.mjs'
import Renderer from './renderer.mjs' import Renderer from './renderer.mjs'
import ParserCore from './parser_core.mjs' import ParserCore from './parser_core.mjs'
import ParserBlock from './parser_block.mjs' import ParserBlock from './parser_block.mjs'

2
test/utils.mjs

@ -1,5 +1,5 @@
import { assert } from 'chai' import { assert } from 'chai'
import utils from '../lib/common/utils.mjs' import * as utils from '../lib/common/utils.mjs'
describe('Utils', function () { describe('Utils', function () {

Loading…
Cancel
Save