toMarkdown

to Markdown

目前为 2021-09-11 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.cn-greasyfork.org/scripts/432248/969689/toMarkdown.js

  1. // ==UserScript==
  2. // @name toMarkdown
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description to Markdown
  6. // @author You
  7. // @include *
  8. // @run-at context-menu
  9. // ==/UserScript==
  10.  
  11. (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.toMarkdown = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  12. /*
  13. * to-markdown - an HTML to Markdown converter
  14. *
  15. * Copyright 2011+, Dom Christie
  16. * Licenced under the MIT licence
  17. *
  18. */
  19.  
  20. 'use strict'
  21.  
  22. var toMarkdown
  23. var converters
  24. var mdConverters = require('./lib/md-converters')
  25. var gfmConverters = require('./lib/gfm-converters')
  26. var HtmlParser = require('./lib/html-parser')
  27. var collapse = require('collapse-whitespace')
  28.  
  29. /*
  30. * Utilities
  31. */
  32.  
  33. var blocks = ['address', 'article', 'aside', 'audio', 'blockquote', 'body',
  34. 'canvas', 'center', 'dd', 'dir', 'div', 'dl', 'dt', 'fieldset', 'figcaption',
  35. 'figure', 'footer', 'form', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
  36. 'header', 'hgroup', 'hr', 'html', 'isindex', 'li', 'main', 'menu', 'nav',
  37. 'noframes', 'noscript', 'ol', 'output', 'p', 'pre', 'section', 'table',
  38. 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'ul'
  39. ]
  40.  
  41. function isBlock (node) {
  42. return blocks.indexOf(node.nodeName.toLowerCase()) !== -1
  43. }
  44.  
  45. var voids = [
  46. 'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input',
  47. 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr'
  48. ]
  49.  
  50. function isVoid (node) {
  51. return voids.indexOf(node.nodeName.toLowerCase()) !== -1
  52. }
  53.  
  54. function htmlToDom (string) {
  55. var tree = new HtmlParser().parseFromString(string, 'text/html')
  56. collapse(tree.documentElement, isBlock)
  57. return tree
  58. }
  59.  
  60. /*
  61. * Flattens DOM tree into single array
  62. */
  63.  
  64. function bfsOrder (node) {
  65. var inqueue = [node]
  66. var outqueue = []
  67. var elem
  68. var children
  69. var i
  70.  
  71. while (inqueue.length > 0) {
  72. elem = inqueue.shift()
  73. outqueue.push(elem)
  74. children = elem.childNodes
  75. for (i = 0; i < children.length; i++) {
  76. if (children[i].nodeType === 1) inqueue.push(children[i])
  77. }
  78. }
  79. outqueue.shift()
  80. return outqueue
  81. }
  82.  
  83. /*
  84. * Contructs a Markdown string of replacement text for a given node
  85. */
  86.  
  87. function getContent (node) {
  88. var text = ''
  89. for (var i = 0; i < node.childNodes.length; i++) {
  90. if (node.childNodes[i].nodeType === 1) {
  91. text += node.childNodes[i]._replacement
  92. } else if (node.childNodes[i].nodeType === 3) {
  93. text += node.childNodes[i].data
  94. } else continue
  95. }
  96. return text
  97. }
  98.  
  99. /*
  100. * Returns the HTML string of an element with its contents converted
  101. */
  102.  
  103. function outer (node, content) {
  104. return node.cloneNode(false).outerHTML.replace('><', '>' + content + '<')
  105. }
  106.  
  107. function canConvert (node, filter) {
  108. if (typeof filter === 'string') {
  109. return filter === node.nodeName.toLowerCase()
  110. }
  111. if (Array.isArray(filter)) {
  112. return filter.indexOf(node.nodeName.toLowerCase()) !== -1
  113. } else if (typeof filter === 'function') {
  114. return filter.call(toMarkdown, node)
  115. } else {
  116. throw new TypeError('`filter` needs to be a string, array, or function')
  117. }
  118. }
  119.  
  120. function isFlankedByWhitespace (side, node) {
  121. var sibling
  122. var regExp
  123. var isFlanked
  124.  
  125. if (side === 'left') {
  126. sibling = node.previousSibling
  127. regExp = / $/
  128. } else {
  129. sibling = node.nextSibling
  130. regExp = /^ /
  131. }
  132.  
  133. if (sibling) {
  134. if (sibling.nodeType === 3) {
  135. isFlanked = regExp.test(sibling.nodeValue)
  136. } else if (sibling.nodeType === 1 && !isBlock(sibling)) {
  137. isFlanked = regExp.test(sibling.textContent)
  138. }
  139. }
  140. return isFlanked
  141. }
  142.  
  143. function flankingWhitespace (node) {
  144. var leading = ''
  145. var trailing = ''
  146.  
  147. if (!isBlock(node)) {
  148. var hasLeading = /^[ \r\n\t]/.test(node.innerHTML)
  149. var hasTrailing = /[ \r\n\t]$/.test(node.innerHTML)
  150.  
  151. if (hasLeading && !isFlankedByWhitespace('left', node)) {
  152. leading = ' '
  153. }
  154. if (hasTrailing && !isFlankedByWhitespace('right', node)) {
  155. trailing = ' '
  156. }
  157. }
  158.  
  159. return { leading: leading, trailing: trailing }
  160. }
  161.  
  162. /*
  163. * Finds a Markdown converter, gets the replacement, and sets it on
  164. * `_replacement`
  165. */
  166.  
  167. function process (node) {
  168. var replacement
  169. var content = getContent(node)
  170.  
  171. // Remove blank nodes
  172. if (!isVoid(node) && !/A|TH|TD/.test(node.nodeName) && /^\s*$/i.test(content)) {
  173. node._replacement = ''
  174. return
  175. }
  176.  
  177. for (var i = 0; i < converters.length; i++) {
  178. var converter = converters[i]
  179.  
  180. if (canConvert(node, converter.filter)) {
  181. if (typeof converter.replacement !== 'function') {
  182. throw new TypeError(
  183. '`replacement` needs to be a function that returns a string'
  184. )
  185. }
  186.  
  187. var whitespace = flankingWhitespace(node)
  188.  
  189. if (whitespace.leading || whitespace.trailing) {
  190. content = content.trim()
  191. }
  192. replacement = whitespace.leading +
  193. converter.replacement.call(toMarkdown, content, node) +
  194. whitespace.trailing
  195. break
  196. }
  197. }
  198.  
  199. node._replacement = replacement
  200. }
  201.  
  202. toMarkdown = function (input, options) {
  203. options = options || {}
  204.  
  205. if (typeof input !== 'string') {
  206. throw new TypeError(input + ' is not a string')
  207. }
  208.  
  209. // Escape potential ol triggers
  210. input = input.replace(/(>[\r\n\s]*)(\d+)\.(&nbsp;| )/g, '$1$2\\.$3')
  211.  
  212. var clone = htmlToDom(input).body
  213. var nodes = bfsOrder(clone)
  214. var output
  215.  
  216. converters = mdConverters.slice(0)
  217. if (options.gfm) {
  218. converters = gfmConverters.concat(converters)
  219. }
  220.  
  221. if (options.converters) {
  222. converters = options.converters.concat(converters)
  223. }
  224.  
  225. // Process through nodes in reverse (so deepest child elements are first).
  226. for (var i = nodes.length - 1; i >= 0; i--) {
  227. process(nodes[i])
  228. }
  229. output = getContent(clone)
  230.  
  231. return output.replace(/^[\t\r\n]+|[\t\r\n\s]+$/g, '')
  232. .replace(/\n\s+\n/g, '\n\n')
  233. .replace(/\n{3,}/g, '\n\n')
  234. }
  235.  
  236. toMarkdown.isBlock = isBlock
  237. toMarkdown.isVoid = isVoid
  238. toMarkdown.outer = outer
  239.  
  240. module.exports = toMarkdown
  241.  
  242. },{"./lib/gfm-converters":2,"./lib/html-parser":3,"./lib/md-converters":4,"collapse-whitespace":7}],2:[function(require,module,exports){
  243. 'use strict'
  244.  
  245. function cell (content, node) {
  246. var index = Array.prototype.indexOf.call(node.parentNode.childNodes, node)
  247. var prefix = ' '
  248. if (index === 0) prefix = '| '
  249. return prefix + content + ' |'
  250. }
  251.  
  252. var highlightRegEx = /highlight highlight-(\S+)/
  253.  
  254. module.exports = [
  255. {
  256. filter: 'br',
  257. replacement: function () {
  258. return '\n'
  259. }
  260. },
  261. {
  262. filter: ['del', 's', 'strike'],
  263. replacement: function (content) {
  264. return '~~' + content + '~~'
  265. }
  266. },
  267.  
  268. {
  269. filter: function (node) {
  270. return node.type === 'checkbox' && node.parentNode.nodeName === 'LI'
  271. },
  272. replacement: function (content, node) {
  273. return (node.checked ? '[x]' : '[ ]') + ' '
  274. }
  275. },
  276.  
  277. {
  278. filter: ['th', 'td'],
  279. replacement: function (content, node) {
  280. return cell(content, node)
  281. }
  282. },
  283.  
  284. {
  285. filter: 'tr',
  286. replacement: function (content, node) {
  287. var borderCells = ''
  288. var alignMap = { left: ':--', right: '--:', center: ':-:' }
  289.  
  290. if (node.parentNode.nodeName === 'THEAD') {
  291. for (var i = 0; i < node.childNodes.length; i++) {
  292. var align = node.childNodes[i].attributes.align
  293. var border = '---'
  294.  
  295. if (align) border = alignMap[align.value] || border
  296.  
  297. borderCells += cell(border, node.childNodes[i])
  298. }
  299. }
  300. return '\n' + content + (borderCells ? '\n' + borderCells : '')
  301. }
  302. },
  303.  
  304. {
  305. filter: 'table',
  306. replacement: function (content) {
  307. return '\n\n' + content + '\n\n'
  308. }
  309. },
  310.  
  311. {
  312. filter: ['thead', 'tbody', 'tfoot'],
  313. replacement: function (content) {
  314. return content
  315. }
  316. },
  317.  
  318. // Fenced code blocks
  319. {
  320. filter: function (node) {
  321. return node.nodeName === 'PRE' &&
  322. node.firstChild &&
  323. node.firstChild.nodeName === 'CODE'
  324. },
  325. replacement: function (content, node) {
  326. return '\n\n```\n' + node.firstChild.textContent + '\n```\n\n'
  327. }
  328. },
  329.  
  330. // Syntax-highlighted code blocks
  331. {
  332. filter: function (node) {
  333. return node.nodeName === 'PRE' &&
  334. node.parentNode.nodeName === 'DIV' &&
  335. highlightRegEx.test(node.parentNode.className)
  336. },
  337. replacement: function (content, node) {
  338. var language = node.parentNode.className.match(highlightRegEx)[1]
  339. return '\n\n```' + language + '\n' + node.textContent + '\n```\n\n'
  340. }
  341. },
  342.  
  343. {
  344. filter: function (node) {
  345. return node.nodeName === 'DIV' &&
  346. highlightRegEx.test(node.className)
  347. },
  348. replacement: function (content) {
  349. return '\n\n' + content + '\n\n'
  350. }
  351. }
  352. ]
  353.  
  354. },{}],3:[function(require,module,exports){
  355. /*
  356. * Set up window for Node.js
  357. */
  358.  
  359. var _window = (typeof window !== 'undefined' ? window : this)
  360.  
  361. /*
  362. * Parsing HTML strings
  363. */
  364.  
  365. function canParseHtmlNatively () {
  366. var Parser = _window.DOMParser
  367. var canParse = false
  368.  
  369. // Adapted from https://gist.github.com/1129031
  370. // Firefox/Opera/IE throw errors on unsupported types
  371. try {
  372. // WebKit returns null on unsupported types
  373. if (new Parser().parseFromString('', 'text/html')) {
  374. canParse = true
  375. }
  376. } catch (e) {}
  377.  
  378. return canParse
  379. }
  380.  
  381. function createHtmlParser () {
  382. var Parser = function () {}
  383.  
  384. // For Node.js environments
  385. if (typeof document === 'undefined') {
  386. var jsdom = require('jsdom')
  387. Parser.prototype.parseFromString = function (string) {
  388. return jsdom.jsdom(string, {
  389. features: {
  390. FetchExternalResources: [],
  391. ProcessExternalResources: false
  392. }
  393. })
  394. }
  395. } else {
  396. if (!shouldUseActiveX()) {
  397. Parser.prototype.parseFromString = function (string) {
  398. var doc = document.implementation.createHTMLDocument('')
  399. doc.open()
  400. doc.write(string)
  401. doc.close()
  402. return doc
  403. }
  404. } else {
  405. Parser.prototype.parseFromString = function (string) {
  406. var doc = new window.ActiveXObject('htmlfile')
  407. doc.designMode = 'on' // disable on-page scripts
  408. doc.open()
  409. doc.write(string)
  410. doc.close()
  411. return doc
  412. }
  413. }
  414. }
  415. return Parser
  416. }
  417.  
  418. function shouldUseActiveX () {
  419. var useActiveX = false
  420.  
  421. try {
  422. document.implementation.createHTMLDocument('').open()
  423. } catch (e) {
  424. if (window.ActiveXObject) useActiveX = true
  425. }
  426.  
  427. return useActiveX
  428. }
  429.  
  430. module.exports = canParseHtmlNatively() ? _window.DOMParser : createHtmlParser()
  431.  
  432. },{"jsdom":6}],4:[function(require,module,exports){
  433. 'use strict'
  434.  
  435. module.exports = [
  436. {
  437. filter: 'p',
  438. replacement: function (content) {
  439. return '\n\n' + content + '\n\n'
  440. }
  441. },
  442.  
  443. {
  444. filter: 'br',
  445. replacement: function () {
  446. return ' \n'
  447. }
  448. },
  449.  
  450. {
  451. filter: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
  452. replacement: function (content, node) {
  453. var hLevel = node.nodeName.charAt(1)
  454. var hPrefix = ''
  455. for (var i = 0; i < hLevel; i++) {
  456. hPrefix += '#'
  457. }
  458. return '\n\n' + hPrefix + ' ' + content + '\n\n'
  459. }
  460. },
  461.  
  462. {
  463. filter: 'hr',
  464. replacement: function () {
  465. return '\n\n* * *\n\n'
  466. }
  467. },
  468.  
  469. {
  470. filter: ['em', 'i'],
  471. replacement: function (content) {
  472. return '_' + content + '_'
  473. }
  474. },
  475.  
  476. {
  477. filter: ['strong', 'b'],
  478. replacement: function (content) {
  479. return '**' + content + '**'
  480. }
  481. },
  482.  
  483. // Inline code
  484. {
  485. filter: function (node) {
  486. var hasSiblings = node.previousSibling || node.nextSibling
  487. var isCodeBlock = node.parentNode.nodeName === 'PRE' && !hasSiblings
  488.  
  489. return node.nodeName === 'CODE' && !isCodeBlock
  490. },
  491. replacement: function (content) {
  492. return '`' + content + '`'
  493. }
  494. },
  495.  
  496. {
  497. filter: function (node) {
  498. return node.nodeName === 'A' && node.getAttribute('href')
  499. },
  500. replacement: function (content, node) {
  501. var titlePart = node.title ? ' "' + node.title + '"' : ''
  502. return '[' + content + '](' + node.getAttribute('href') + titlePart + ')'
  503. }
  504. },
  505.  
  506. {
  507. filter: 'img',
  508. replacement: function (content, node) {
  509. var alt = node.alt || ''
  510. var src = node.getAttribute('src') || ''
  511. var title = node.title || ''
  512. var titlePart = title ? ' "' + title + '"' : ''
  513. return src ? '![' + alt + ']' + '(' + src + titlePart + ')' : ''
  514. }
  515. },
  516.  
  517. // Code blocks
  518. {
  519. filter: function (node) {
  520. return node.nodeName === 'PRE' && node.firstChild.nodeName === 'CODE'
  521. },
  522. replacement: function (content, node) {
  523. return '\n\n ' + node.firstChild.textContent.replace(/\n/g, '\n ') + '\n\n'
  524. }
  525. },
  526.  
  527. {
  528. filter: 'blockquote',
  529. replacement: function (content) {
  530. content = content.trim()
  531. content = content.replace(/\n{3,}/g, '\n\n')
  532. content = content.replace(/^/gm, '> ')
  533. return '\n\n' + content + '\n\n'
  534. }
  535. },
  536.  
  537. {
  538. filter: 'li',
  539. replacement: function (content, node) {
  540. content = content.replace(/^\s+/, '').replace(/\n/gm, '\n ')
  541. var prefix = '* '
  542. var parent = node.parentNode
  543. var index = Array.prototype.indexOf.call(parent.children, node) + 1
  544.  
  545. prefix = /ol/i.test(parent.nodeName) ? index + '. ' : '* '
  546. return prefix + content
  547. }
  548. },
  549.  
  550. {
  551. filter: ['ul', 'ol'],
  552. replacement: function (content, node) {
  553. var strings = []
  554. for (var i = 0; i < node.childNodes.length; i++) {
  555. strings.push(node.childNodes[i]._replacement)
  556. }
  557.  
  558. if (/li/i.test(node.parentNode.nodeName)) {
  559. return '\n' + strings.join('\n')
  560. }
  561. return '\n\n' + strings.join('\n') + '\n\n'
  562. }
  563. },
  564.  
  565. {
  566. filter: function (node) {
  567. return this.isBlock(node)
  568. },
  569. replacement: function (content, node) {
  570. // return '\n\n' + this.outer(node, content) + '\n\n'
  571. return '\n\n' + content + '\n\n'
  572. }
  573. },
  574.  
  575. // Anything else!
  576. {
  577. filter: function () {
  578. return true
  579. },
  580. replacement: function (content, node) {
  581. // return this.outer(node, content)
  582. return content
  583. }
  584. }
  585. ]
  586.  
  587. },{}],5:[function(require,module,exports){
  588. /**
  589. * This file automatically generated from `build.js`.
  590. * Do not manually edit.
  591. */
  592.  
  593. module.exports = [
  594. "address",
  595. "article",
  596. "aside",
  597. "audio",
  598. "blockquote",
  599. "canvas",
  600. "dd",
  601. "div",
  602. "dl",
  603. "fieldset",
  604. "figcaption",
  605. "figure",
  606. "footer",
  607. "form",
  608. "h1",
  609. "h2",
  610. "h3",
  611. "h4",
  612. "h5",
  613. "h6",
  614. "header",
  615. "hgroup",
  616. "hr",
  617. "main",
  618. "nav",
  619. "noscript",
  620. "ol",
  621. "output",
  622. "p",
  623. "pre",
  624. "section",
  625. "table",
  626. "tfoot",
  627. "ul",
  628. "video"
  629. ];
  630.  
  631. },{}],6:[function(require,module,exports){
  632.  
  633. },{}],7:[function(require,module,exports){
  634. 'use strict';
  635.  
  636. var voidElements = require('void-elements');
  637. Object.keys(voidElements).forEach(function (name) {
  638. voidElements[name.toUpperCase()] = 1;
  639. });
  640.  
  641. var blockElements = {};
  642. require('block-elements').forEach(function (name) {
  643. blockElements[name.toUpperCase()] = 1;
  644. });
  645.  
  646. /**
  647. * isBlockElem(node) determines if the given node is a block element.
  648. *
  649. * @param {Node} node
  650. * @return {Boolean}
  651. */
  652. function isBlockElem(node) {
  653. return !!(node && blockElements[node.nodeName]);
  654. }
  655.  
  656. /**
  657. * isVoid(node) determines if the given node is a void element.
  658. *
  659. * @param {Node} node
  660. * @return {Boolean}
  661. */
  662. function isVoid(node) {
  663. return !!(node && voidElements[node.nodeName]);
  664. }
  665.  
  666. /**
  667. * whitespace(elem [, isBlock]) removes extraneous whitespace from an
  668. * the given element. The function isBlock may optionally be passed in
  669. * to determine whether or not an element is a block element; if none
  670. * is provided, defaults to using the list of block elements provided
  671. * by the `block-elements` module.
  672. *
  673. * @param {Node} elem
  674. * @param {Function} blockTest
  675. */
  676. function collapseWhitespace(elem, isBlock) {
  677. if (!elem.firstChild || elem.nodeName === 'PRE') return;
  678.  
  679. if (typeof isBlock !== 'function') {
  680. isBlock = isBlockElem;
  681. }
  682.  
  683. var prevText = null;
  684. var prevVoid = false;
  685.  
  686. var prev = null;
  687. var node = next(prev, elem);
  688.  
  689. while (node !== elem) {
  690. if (node.nodeType === 3) {
  691. // Node.TEXT_NODE
  692. var text = node.data.replace(/[ \r\n\t]+/g, ' ');
  693.  
  694. if ((!prevText || / $/.test(prevText.data)) && !prevVoid && text[0] === ' ') {
  695. text = text.substr(1);
  696. }
  697.  
  698. // `text` might be empty at this point.
  699. if (!text) {
  700. node = remove(node);
  701. continue;
  702. }
  703.  
  704. node.data = text;
  705. prevText = node;
  706. } else if (node.nodeType === 1) {
  707. // Node.ELEMENT_NODE
  708. if (isBlock(node) || node.nodeName === 'BR') {
  709. if (prevText) {
  710. prevText.data = prevText.data.replace(/ $/, '');
  711. }
  712.  
  713. prevText = null;
  714. prevVoid = false;
  715. } else if (isVoid(node)) {
  716. // Avoid trimming space around non-block, non-BR void elements.
  717. prevText = null;
  718. prevVoid = true;
  719. }
  720. } else {
  721. node = remove(node);
  722. continue;
  723. }
  724.  
  725. var nextNode = next(prev, node);
  726. prev = node;
  727. node = nextNode;
  728. }
  729.  
  730. if (prevText) {
  731. prevText.data = prevText.data.replace(/ $/, '');
  732. if (!prevText.data) {
  733. remove(prevText);
  734. }
  735. }
  736. }
  737.  
  738. /**
  739. * remove(node) removes the given node from the DOM and returns the
  740. * next node in the sequence.
  741. *
  742. * @param {Node} node
  743. * @return {Node} node
  744. */
  745. function remove(node) {
  746. var next = node.nextSibling || node.parentNode;
  747.  
  748. node.parentNode.removeChild(node);
  749.  
  750. return next;
  751. }
  752.  
  753. /**
  754. * next(prev, current) returns the next node in the sequence, given the
  755. * current and previous nodes.
  756. *
  757. * @param {Node} prev
  758. * @param {Node} current
  759. * @return {Node}
  760. */
  761. function next(prev, current) {
  762. if (prev && prev.parentNode === current || current.nodeName === 'PRE') {
  763. return current.nextSibling || current.parentNode;
  764. }
  765.  
  766. return current.firstChild || current.nextSibling || current.parentNode;
  767. }
  768.  
  769. module.exports = collapseWhitespace;
  770.  
  771. },{"block-elements":5,"void-elements":8}],8:[function(require,module,exports){
  772. /**
  773. * This file automatically generated from `pre-publish.js`.
  774. * Do not manually edit.
  775. */
  776.  
  777. module.exports = {
  778. "area": true,
  779. "base": true,
  780. "br": true,
  781. "col": true,
  782. "embed": true,
  783. "hr": true,
  784. "img": true,
  785. "input": true,
  786. "keygen": true,
  787. "link": true,
  788. "menuitem": true,
  789. "meta": true,
  790. "param": true,
  791. "source": true,
  792. "track": true,
  793. "wbr": true
  794. };
  795.  
  796. },{}]},{},[1])(1)
  797. });