@diplodoc/transform 0.0.0-rc-add-file-meta-202410090959
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +76 -0
- package/README.ru.md +76 -0
- package/dist/css/print.css +91 -0
- package/dist/css/print.css.map +7 -0
- package/dist/css/yfm.css +1016 -0
- package/dist/css/yfm.css.map +7 -0
- package/dist/css/yfm.min.css +2 -0
- package/dist/css/yfm.min.css.map +7 -0
- package/dist/js/print.js +51 -0
- package/dist/js/print.js.map +7 -0
- package/dist/js/yfm.js +673 -0
- package/dist/js/yfm.js.map +7 -0
- package/dist/js/yfm.min.js +2 -0
- package/dist/js/yfm.min.js.map +7 -0
- package/lib/frontmatter/common.d.ts +21 -0
- package/lib/frontmatter/common.js +24 -0
- package/lib/frontmatter/common.js.map +1 -0
- package/lib/frontmatter/emplace.d.ts +4 -0
- package/lib/frontmatter/emplace.js +21 -0
- package/lib/frontmatter/emplace.js.map +1 -0
- package/lib/frontmatter/extract.d.ts +8 -0
- package/lib/frontmatter/extract.js +65 -0
- package/lib/frontmatter/extract.js.map +1 -0
- package/lib/frontmatter/index.d.ts +4 -0
- package/lib/frontmatter/index.js +23 -0
- package/lib/frontmatter/index.js.map +1 -0
- package/lib/frontmatter/transformValues.d.ts +2 -0
- package/lib/frontmatter/transformValues.js +20 -0
- package/lib/frontmatter/transformValues.js.map +1 -0
- package/lib/fsContext.d.ts +7 -0
- package/lib/fsContext.js +21 -0
- package/lib/fsContext.js.map +1 -0
- package/lib/getObject.d.ts +2 -0
- package/lib/getObject.js +14 -0
- package/lib/getObject.js.map +1 -0
- package/lib/headings.d.ts +4 -0
- package/lib/headings.js +75 -0
- package/lib/headings.js.map +1 -0
- package/lib/highlight.d.ts +3 -0
- package/lib/highlight.js +29 -0
- package/lib/highlight.js.map +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +37 -0
- package/lib/index.js.map +1 -0
- package/lib/liquid/conditions.d.ts +6 -0
- package/lib/liquid/conditions.js +243 -0
- package/lib/liquid/conditions.js.map +1 -0
- package/lib/liquid/cycles.d.ts +4 -0
- package/lib/liquid/cycles.js +157 -0
- package/lib/liquid/cycles.js.map +1 -0
- package/lib/liquid/errors.d.ts +3 -0
- package/lib/liquid/errors.js +13 -0
- package/lib/liquid/errors.js.map +1 -0
- package/lib/liquid/evaluation.d.ts +4 -0
- package/lib/liquid/evaluation.js +143 -0
- package/lib/liquid/evaluation.js.map +1 -0
- package/lib/liquid/filters.d.ts +9 -0
- package/lib/liquid/filters.js +22 -0
- package/lib/liquid/filters.js.map +1 -0
- package/lib/liquid/index.d.ts +16 -0
- package/lib/liquid/index.js +121 -0
- package/lib/liquid/index.js.map +1 -0
- package/lib/liquid/legacyConditions.d.ts +4 -0
- package/lib/liquid/legacyConditions.js +174 -0
- package/lib/liquid/legacyConditions.js.map +1 -0
- package/lib/liquid/lexical.d.ts +16 -0
- package/lib/liquid/lexical.js +82 -0
- package/lib/liquid/lexical.js.map +1 -0
- package/lib/liquid/services/argv.d.ts +16 -0
- package/lib/liquid/services/argv.js +17 -0
- package/lib/liquid/services/argv.js.map +1 -0
- package/lib/liquid/sourceMap.d.ts +19 -0
- package/lib/liquid/sourceMap.js +51 -0
- package/lib/liquid/sourceMap.js.map +1 -0
- package/lib/liquid/substitutions.d.ts +2 -0
- package/lib/liquid/substitutions.js +56 -0
- package/lib/liquid/substitutions.js.map +1 -0
- package/lib/liquid/utils.d.ts +8 -0
- package/lib/liquid/utils.js +24 -0
- package/lib/liquid/utils.js.map +1 -0
- package/lib/log.d.ts +18 -0
- package/lib/log.js +54 -0
- package/lib/log.js.map +1 -0
- package/lib/md.d.ts +14 -0
- package/lib/md.js +121 -0
- package/lib/md.js.map +1 -0
- package/lib/plugins/anchors/collect.d.ts +5 -0
- package/lib/plugins/anchors/collect.js +82 -0
- package/lib/plugins/anchors/collect.js.map +1 -0
- package/lib/plugins/anchors/constants.d.ts +2 -0
- package/lib/plugins/anchors/constants.js +6 -0
- package/lib/plugins/anchors/constants.js.map +1 -0
- package/lib/plugins/anchors/index.d.ts +9 -0
- package/lib/plugins/anchors/index.js +140 -0
- package/lib/plugins/anchors/index.js.map +1 -0
- package/lib/plugins/block-anchor/block-anchor.d.ts +5 -0
- package/lib/plugins/block-anchor/block-anchor.js +53 -0
- package/lib/plugins/block-anchor/block-anchor.js.map +1 -0
- package/lib/plugins/block-anchor/index.d.ts +3 -0
- package/lib/plugins/block-anchor/index.js +9 -0
- package/lib/plugins/block-anchor/index.js.map +1 -0
- package/lib/plugins/changelog/collect.d.ts +8 -0
- package/lib/plugins/changelog/collect.js +54 -0
- package/lib/plugins/changelog/collect.js.map +1 -0
- package/lib/plugins/changelog/index.d.ts +6 -0
- package/lib/plugins/changelog/index.js +134 -0
- package/lib/plugins/changelog/index.js.map +1 -0
- package/lib/plugins/changelog/types.d.ts +10 -0
- package/lib/plugins/changelog/types.js +3 -0
- package/lib/plugins/changelog/types.js.map +1 -0
- package/lib/plugins/checkbox/checkbox.d.ts +19 -0
- package/lib/plugins/checkbox/checkbox.js +103 -0
- package/lib/plugins/checkbox/checkbox.js.map +1 -0
- package/lib/plugins/checkbox/index.d.ts +8 -0
- package/lib/plugins/checkbox/index.js +12 -0
- package/lib/plugins/checkbox/index.js.map +1 -0
- package/lib/plugins/code.d.ts +3 -0
- package/lib/plugins/code.js +63 -0
- package/lib/plugins/code.js.map +1 -0
- package/lib/plugins/cut.d.ts +4 -0
- package/lib/plugins/cut.js +4 -0
- package/lib/plugins/cut.js.map +1 -0
- package/lib/plugins/deflist.d.ts +3 -0
- package/lib/plugins/deflist.js +8 -0
- package/lib/plugins/deflist.js.map +1 -0
- package/lib/plugins/file/const.d.ts +27 -0
- package/lib/plugins/file/const.js +47 -0
- package/lib/plugins/file/const.js.map +1 -0
- package/lib/plugins/file/file.d.ts +8 -0
- package/lib/plugins/file/file.js +63 -0
- package/lib/plugins/file/file.js.map +1 -0
- package/lib/plugins/file/index.d.ts +4 -0
- package/lib/plugins/file/index.js +9 -0
- package/lib/plugins/file/index.js.map +1 -0
- package/lib/plugins/images/collect.d.ts +8 -0
- package/lib/plugins/images/collect.js +45 -0
- package/lib/plugins/images/collect.js.map +1 -0
- package/lib/plugins/images/index.d.ts +11 -0
- package/lib/plugins/images/index.js +108 -0
- package/lib/plugins/images/index.js.map +1 -0
- package/lib/plugins/imsize/const.d.ts +7 -0
- package/lib/plugins/imsize/const.js +12 -0
- package/lib/plugins/imsize/const.js.map +1 -0
- package/lib/plugins/imsize/helpers.d.ts +6 -0
- package/lib/plugins/imsize/helpers.js +64 -0
- package/lib/plugins/imsize/helpers.js.map +1 -0
- package/lib/plugins/imsize/index.d.ts +8 -0
- package/lib/plugins/imsize/index.js +12 -0
- package/lib/plugins/imsize/index.js.map +1 -0
- package/lib/plugins/imsize/plugin.d.ts +3 -0
- package/lib/plugins/imsize/plugin.js +188 -0
- package/lib/plugins/imsize/plugin.js.map +1 -0
- package/lib/plugins/includes/collect.d.ts +3 -0
- package/lib/plugins/includes/collect.js +76 -0
- package/lib/plugins/includes/collect.js.map +1 -0
- package/lib/plugins/includes/index.d.ts +8 -0
- package/lib/plugins/includes/index.js +105 -0
- package/lib/plugins/includes/index.js.map +1 -0
- package/lib/plugins/includes/types.d.ts +15 -0
- package/lib/plugins/includes/types.js +3 -0
- package/lib/plugins/includes/types.js.map +1 -0
- package/lib/plugins/links/collect.d.ts +6 -0
- package/lib/plugins/links/collect.js +75 -0
- package/lib/plugins/links/collect.js.map +1 -0
- package/lib/plugins/links/index.d.ts +27 -0
- package/lib/plugins/links/index.js +189 -0
- package/lib/plugins/links/index.js.map +1 -0
- package/lib/plugins/meta.d.ts +3 -0
- package/lib/plugins/meta.js +8 -0
- package/lib/plugins/meta.js.map +1 -0
- package/lib/plugins/monospace.d.ts +3 -0
- package/lib/plugins/monospace.js +108 -0
- package/lib/plugins/monospace.js.map +1 -0
- package/lib/plugins/notes/constants.d.ts +1 -0
- package/lib/plugins/notes/constants.js +102 -0
- package/lib/plugins/notes/constants.js.map +1 -0
- package/lib/plugins/notes/index.d.ts +3 -0
- package/lib/plugins/notes/index.js +103 -0
- package/lib/plugins/notes/index.js.map +1 -0
- package/lib/plugins/sup.d.ts +3 -0
- package/lib/plugins/sup.js +8 -0
- package/lib/plugins/sup.js.map +1 -0
- package/lib/plugins/table/attrs.d.ts +18 -0
- package/lib/plugins/table/attrs.js +172 -0
- package/lib/plugins/table/attrs.js.map +1 -0
- package/lib/plugins/table/index.d.ts +3 -0
- package/lib/plugins/table/index.js +406 -0
- package/lib/plugins/table/index.js.map +1 -0
- package/lib/plugins/tabs.d.ts +4 -0
- package/lib/plugins/tabs.js +4 -0
- package/lib/plugins/tabs.js.map +1 -0
- package/lib/plugins/term/constants.d.ts +1 -0
- package/lib/plugins/term/constants.js +5 -0
- package/lib/plugins/term/constants.js.map +1 -0
- package/lib/plugins/term/index.d.ts +3 -0
- package/lib/plugins/term/index.js +110 -0
- package/lib/plugins/term/index.js.map +1 -0
- package/lib/plugins/term/termDefinitions.d.ts +4 -0
- package/lib/plugins/term/termDefinitions.js +127 -0
- package/lib/plugins/term/termDefinitions.js.map +1 -0
- package/lib/plugins/typings.d.ts +1 -0
- package/lib/plugins/typings.js +18 -0
- package/lib/plugins/typings.js.map +1 -0
- package/lib/plugins/utils.d.ts +6 -0
- package/lib/plugins/utils.js +30 -0
- package/lib/plugins/utils.js.map +1 -0
- package/lib/plugins/video/const.d.ts +12 -0
- package/lib/plugins/video/const.js +26 -0
- package/lib/plugins/video/const.js.map +1 -0
- package/lib/plugins/video/index.d.ts +8 -0
- package/lib/plugins/video/index.js +103 -0
- package/lib/plugins/video/index.js.map +1 -0
- package/lib/plugins/video/parsers.d.ts +8 -0
- package/lib/plugins/video/parsers.js +82 -0
- package/lib/plugins/video/parsers.js.map +1 -0
- package/lib/plugins/video/types.d.ts +42 -0
- package/lib/plugins/video/types.js +3 -0
- package/lib/plugins/video/types.js.map +1 -0
- package/lib/plugins/video/utils.d.ts +2 -0
- package/lib/plugins/video/utils.js +28 -0
- package/lib/plugins/video/utils.js.map +1 -0
- package/lib/plugins.d.ts +3 -0
- package/lib/plugins.js +38 -0
- package/lib/plugins.js.map +1 -0
- package/lib/preprocessors/included/index.d.ts +5 -0
- package/lib/preprocessors/included/index.js +71 -0
- package/lib/preprocessors/included/index.js.map +1 -0
- package/lib/preprocessors.d.ts +3 -0
- package/lib/preprocessors.js +8 -0
- package/lib/preprocessors.js.map +1 -0
- package/lib/sanitize.d.ts +13 -0
- package/lib/sanitize.js +580 -0
- package/lib/sanitize.js.map +1 -0
- package/lib/title.d.ts +7 -0
- package/lib/title.js +18 -0
- package/lib/title.js.map +1 -0
- package/lib/typings.d.ts +117 -0
- package/lib/typings.js +3 -0
- package/lib/typings.js.map +1 -0
- package/lib/utils.d.ts +15 -0
- package/lib/utils.js +91 -0
- package/lib/utils.js.map +1 -0
- package/lib/utilsFS.d.ts +35 -0
- package/lib/utilsFS.js +101 -0
- package/lib/utilsFS.js.map +1 -0
- package/lib/yfmlint/index.d.ts +26 -0
- package/lib/yfmlint/index.js +77 -0
- package/lib/yfmlint/index.js.map +1 -0
- package/lib/yfmlint/markdownlint-custom-rule/index.d.ts +9 -0
- package/lib/yfmlint/markdownlint-custom-rule/index.js +22 -0
- package/lib/yfmlint/markdownlint-custom-rule/index.js.map +1 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm001.d.ts +2 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm001.js +28 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm001.js.map +1 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm002.d.ts +2 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm002.js +33 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm002.js.map +1 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm003.d.ts +2 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm003.js +33 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm003.js.map +1 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm004.d.ts +2 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm004.js +28 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm004.js.map +1 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm005.d.ts +2 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm005.js +28 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm005.js.map +1 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm006.d.ts +2 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm006.js +28 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm006.js.map +1 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm007.d.ts +2 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm007.js +29 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm007.js.map +1 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm008.d.ts +2 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm008.js +28 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm008.js.map +1 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm009.d.ts +2 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm009.js +47 -0
- package/lib/yfmlint/markdownlint-custom-rule/yfm009.js.map +1 -0
- package/lib/yfmlint/typings.d.ts +14 -0
- package/lib/yfmlint/typings.js +3 -0
- package/lib/yfmlint/typings.js.map +1 -0
- package/lib/yfmlint/utils.d.ts +9 -0
- package/lib/yfmlint/utils.js +22 -0
- package/lib/yfmlint/utils.js.map +1 -0
- package/lib/yfmlint/yfmlint.d.ts +3 -0
- package/lib/yfmlint/yfmlint.js +75 -0
- package/lib/yfmlint/yfmlint.js.map +1 -0
- package/package.json +103 -0
- package/src/.eslintrc.js +3 -0
- package/src/js/code.ts +65 -0
- package/src/js/globals.d.ts +13 -0
- package/src/js/index.ts +8 -0
- package/src/js/patch.ts +9 -0
- package/src/js/polyfill.js +27 -0
- package/src/js/print/index.ts +1 -0
- package/src/js/print/table.ts +62 -0
- package/src/js/term/index.ts +51 -0
- package/src/js/term/utils.ts +240 -0
- package/src/js/utils.ts +9 -0
- package/src/js/wide-mode/apply.ts +34 -0
- package/src/js/wide-mode/constants.ts +1 -0
- package/src/js/wide-mode/globals.d.ts +12 -0
- package/src/js/wide-mode/icons/close.ts +1 -0
- package/src/js/wide-mode/icons/expand.ts +1 -0
- package/src/js/wide-mode/index.ts +5 -0
- package/src/js/wide-mode/modal.ts +108 -0
- package/src/scss/_anchor.scss +46 -0
- package/src/scss/_code.scss +40 -0
- package/src/scss/_common.scss +416 -0
- package/src/scss/_cut.scss +55 -0
- package/src/scss/_file.scss +33 -0
- package/src/scss/_highlight.scss +80 -0
- package/src/scss/_modal.scss +121 -0
- package/src/scss/_note.scss +64 -0
- package/src/scss/_table.scss +32 -0
- package/src/scss/_term.scss +76 -0
- package/src/scss/brand.scss +48 -0
- package/src/scss/print/code.scss +9 -0
- package/src/scss/print/common.scss +13 -0
- package/src/scss/print/cut.scss +33 -0
- package/src/scss/print/note.scss +7 -0
- package/src/scss/print/table.scss +24 -0
- package/src/scss/print/tabs.scss +26 -0
- package/src/scss/print/term.scss +10 -0
- package/src/scss/print.scss +7 -0
- package/src/scss/private.scss +44 -0
- package/src/scss/yfm.scss +12 -0
- package/src/transform/frontmatter/common.ts +27 -0
- package/src/transform/frontmatter/emplace.ts +24 -0
- package/src/transform/frontmatter/extract.ts +94 -0
- package/src/transform/frontmatter/index.ts +4 -0
- package/src/transform/frontmatter/transformValues.ts +26 -0
- package/src/transform/fsContext.ts +22 -0
- package/src/transform/getObject.ts +17 -0
- package/src/transform/headings.ts +92 -0
- package/src/transform/highlight.ts +34 -0
- package/src/transform/index.ts +54 -0
- package/src/transform/liquid/conditions.ts +331 -0
- package/src/transform/liquid/cycles.ts +243 -0
- package/src/transform/liquid/errors.ts +10 -0
- package/src/transform/liquid/evaluation.ts +165 -0
- package/src/transform/liquid/filters.ts +19 -0
- package/src/transform/liquid/index.ts +215 -0
- package/src/transform/liquid/legacyConditions.ts +252 -0
- package/src/transform/liquid/lexical.ts +88 -0
- package/src/transform/liquid/services/argv.ts +24 -0
- package/src/transform/liquid/sourceMap.ts +62 -0
- package/src/transform/liquid/substitutions.ts +75 -0
- package/src/transform/liquid/utils.ts +30 -0
- package/src/transform/log.ts +60 -0
- package/src/transform/md.ts +175 -0
- package/src/transform/plugins/anchors/collect.ts +101 -0
- package/src/transform/plugins/anchors/constants.ts +2 -0
- package/src/transform/plugins/anchors/index.ts +183 -0
- package/src/transform/plugins/block-anchor/block-anchor.ts +60 -0
- package/src/transform/plugins/block-anchor/index.ts +12 -0
- package/src/transform/plugins/changelog/collect.ts +74 -0
- package/src/transform/plugins/changelog/index.ts +169 -0
- package/src/transform/plugins/changelog/types.ts +10 -0
- package/src/transform/plugins/checkbox/checkbox.ts +122 -0
- package/src/transform/plugins/checkbox/index.ts +16 -0
- package/src/transform/plugins/code.ts +81 -0
- package/src/transform/plugins/cut.ts +3 -0
- package/src/transform/plugins/deflist.ts +6 -0
- package/src/transform/plugins/file/README.md +88 -0
- package/src/transform/plugins/file/const.ts +46 -0
- package/src/transform/plugins/file/file.ts +82 -0
- package/src/transform/plugins/file/index.ts +11 -0
- package/src/transform/plugins/images/collect.ts +61 -0
- package/src/transform/plugins/images/index.ts +156 -0
- package/src/transform/plugins/imsize/const.ts +7 -0
- package/src/transform/plugins/imsize/helpers.ts +75 -0
- package/src/transform/plugins/imsize/index.ts +15 -0
- package/src/transform/plugins/imsize/plugin.ts +215 -0
- package/src/transform/plugins/includes/collect.ts +128 -0
- package/src/transform/plugins/includes/index.ts +147 -0
- package/src/transform/plugins/includes/types.ts +17 -0
- package/src/transform/plugins/links/collect.ts +94 -0
- package/src/transform/plugins/links/index.ts +260 -0
- package/src/transform/plugins/meta.ts +6 -0
- package/src/transform/plugins/monospace.ts +141 -0
- package/src/transform/plugins/notes/constants.ts +98 -0
- package/src/transform/plugins/notes/index.ts +141 -0
- package/src/transform/plugins/sup.ts +6 -0
- package/src/transform/plugins/table/attrs.ts +199 -0
- package/src/transform/plugins/table/index.ts +505 -0
- package/src/transform/plugins/tabs.ts +3 -0
- package/src/transform/plugins/term/constants.ts +1 -0
- package/src/transform/plugins/term/index.ts +142 -0
- package/src/transform/plugins/term/termDefinitions.ts +181 -0
- package/src/transform/plugins/typings.ts +1 -0
- package/src/transform/plugins/utils.ts +39 -0
- package/src/transform/plugins/video/const.ts +25 -0
- package/src/transform/plugins/video/index.ts +134 -0
- package/src/transform/plugins/video/parsers.ts +83 -0
- package/src/transform/plugins/video/types.ts +29 -0
- package/src/transform/plugins/video/utils.ts +27 -0
- package/src/transform/plugins.ts +37 -0
- package/src/transform/preprocessors/included/index.ts +101 -0
- package/src/transform/preprocessors.ts +7 -0
- package/src/transform/sanitize.ts +609 -0
- package/src/transform/title.ts +22 -0
- package/src/transform/typings.ts +135 -0
- package/src/transform/utils.ts +104 -0
- package/src/transform/utilsFS.ts +160 -0
- package/src/transform/yfmlint/README.md +48 -0
- package/src/transform/yfmlint/index.ts +137 -0
- package/src/transform/yfmlint/markdownlint-custom-rule/index.ts +9 -0
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm001.ts +35 -0
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm002.ts +33 -0
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm003.ts +33 -0
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm004.ts +27 -0
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm005.ts +27 -0
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm006.ts +26 -0
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm007.ts +28 -0
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm008.ts +26 -0
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm009.ts +54 -0
- package/src/transform/yfmlint/typings.ts +18 -0
- package/src/transform/yfmlint/utils.ts +33 -0
- package/src/transform/yfmlint/yfmlint.ts +80 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 YANDEX LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
**english** | [русский](https://github.com/yandex-cloud/yfm-transform/blob/master/README.ru.md)
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.org/package/@diplodoc/transform)
|
|
6
|
+
|
|
7
|
+
[@diplodoc/transform](https://www.npmjs.com/package/@diplodoc/transform) is a package for converting Yandex Flavored Markdown to HTML.
|
|
8
|
+
|
|
9
|
+
Use it in your code to work with text during program execution. For example, to display user-generated content.
|
|
10
|
+
|
|
11
|
+
## Installation {#install}
|
|
12
|
+
|
|
13
|
+
1. Install a package:
|
|
14
|
+
|
|
15
|
+
```shell
|
|
16
|
+
npm i @diplodoc/transform
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
1. Add the package in your code using the `require()` or `import()` function:
|
|
20
|
+
|
|
21
|
+
```javascript
|
|
22
|
+
const transform = require('@diplodoc/transform');
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
1. To ensure text is displayed properly, add CSS styles and client scripts to the project:
|
|
26
|
+
|
|
27
|
+
```css
|
|
28
|
+
@import '~@diplodoc/transform/dist/css/yfm.css';
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```javascript
|
|
32
|
+
import '@diplodoc/transform/dist/js/yfm';
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Usage {#use}
|
|
36
|
+
|
|
37
|
+
The package provides the `transform()` function:
|
|
38
|
+
|
|
39
|
+
- Input data: [Settings](https://diplodoc.com/docs/en/tools/transform/settings) and a string with YFM.
|
|
40
|
+
- Returned value: An object with the `result` and `logs` fields.
|
|
41
|
+
|
|
42
|
+
### Result field
|
|
43
|
+
|
|
44
|
+
`result`: Resulting object, contains the fields:
|
|
45
|
+
|
|
46
|
+
- `html`: A line with HTML.
|
|
47
|
+
- `meta`: Metadata from the transmitted content.
|
|
48
|
+
- `title`: The document title. Returned if `extractTitle = true` or `needTitle = true`.
|
|
49
|
+
- `headings`: A list of document headers.
|
|
50
|
+
|
|
51
|
+
### Logs field
|
|
52
|
+
|
|
53
|
+
`logs`: Information about the transformation process, includes arrays:
|
|
54
|
+
|
|
55
|
+
- `error`: Errors.
|
|
56
|
+
- `warn`: Warnings.
|
|
57
|
+
- `info`: Additional information.
|
|
58
|
+
|
|
59
|
+
### Example of a function invocation
|
|
60
|
+
|
|
61
|
+
```javascript
|
|
62
|
+
const fs = require('fs');
|
|
63
|
+
const transform = require('@diplodoc/transform');
|
|
64
|
+
|
|
65
|
+
const content = fs.readFileSync(filePath, 'utf');
|
|
66
|
+
const vars = {user: {name: 'Alice'}};
|
|
67
|
+
|
|
68
|
+
const {
|
|
69
|
+
result: {html, meta, title, headings},
|
|
70
|
+
logs,
|
|
71
|
+
} = transform(content, {vars});
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## License
|
|
75
|
+
|
|
76
|
+
MIT
|
package/README.ru.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
**русский** | [english](https://github.com/yandex-cloud/yfm-transform/blob/master/README.md)
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.org/package/@diplodoc/transform)
|
|
6
|
+
|
|
7
|
+
[@diplodoc/transform](https://www.npmjs.com/package/@diplodoc/transform) — пакет для трансформации Yandex Flavored Markdown в HTML.
|
|
8
|
+
|
|
9
|
+
Используйте его в своем коде для работы с текстом во время выполнения программы. Например, чтобы отображать пользовательский контент.
|
|
10
|
+
|
|
11
|
+
## Установка {#install}
|
|
12
|
+
|
|
13
|
+
1. Установите пакет:
|
|
14
|
+
|
|
15
|
+
```shell
|
|
16
|
+
npm i @diplodoc/transform
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
1. Подключите пакет в своем коде, используя функцию `require()` или `import()`:
|
|
20
|
+
|
|
21
|
+
```javascript
|
|
22
|
+
const transform = require('@diplodoc/transform');
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
1. Для корректного отображения подключите в проект CSS-стили и клиентские скрипты:
|
|
26
|
+
|
|
27
|
+
```css
|
|
28
|
+
@import '~@diplodoc/transform/dist/css/yfm.css';
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```javascript
|
|
32
|
+
import '@diplodoc/transform/dist/js/yfm';
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Использование {#use}
|
|
36
|
+
|
|
37
|
+
Пакет предоставляет функцию `transform()`:
|
|
38
|
+
|
|
39
|
+
- входные данные — строка с YFM и [настройки](settings.md);
|
|
40
|
+
- возвращаемое значение — объект с полями `result` и `logs`.
|
|
41
|
+
|
|
42
|
+
### Поле result
|
|
43
|
+
|
|
44
|
+
`result` — объект результата, содержит поля:
|
|
45
|
+
|
|
46
|
+
- `html` — строка с HTML.
|
|
47
|
+
- `meta` — [метаданные](../../syntax/meta.md#meta) из переданного контента.
|
|
48
|
+
- `title` — заголовок документа. Возвращается, если заданы настройки `extractTitle = true` или `needTitle = true`.
|
|
49
|
+
- `headings` — список заголовков документа.
|
|
50
|
+
|
|
51
|
+
### Поле logs
|
|
52
|
+
|
|
53
|
+
`logs` — информация о процессе трансформации, включает массивы:
|
|
54
|
+
|
|
55
|
+
- `error` — ошибки.
|
|
56
|
+
- `warn` — предупреждения.
|
|
57
|
+
- `info` — дополнительная информация.
|
|
58
|
+
|
|
59
|
+
### Пример вызова функции
|
|
60
|
+
|
|
61
|
+
```javascript
|
|
62
|
+
const fs = require('fs');
|
|
63
|
+
const transform = require('@diplodoc/transform');
|
|
64
|
+
|
|
65
|
+
const content = fs.readFileSync(filePath, 'utf');
|
|
66
|
+
const vars = {user: {name: 'Alice'}};
|
|
67
|
+
|
|
68
|
+
const {
|
|
69
|
+
result: {html, meta, title, headings},
|
|
70
|
+
logs,
|
|
71
|
+
} = transform(content, {vars});
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## License
|
|
75
|
+
|
|
76
|
+
MIT
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* src/scss/print.scss */
|
|
2
|
+
@media print {
|
|
3
|
+
.yfm .yfm-clipboard > pre > code {
|
|
4
|
+
white-space: pre-wrap;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
@media print {
|
|
8
|
+
.yfm .yfm-page__delimeter {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
.yfm h1[data-original-article],
|
|
12
|
+
.yfm h2[data-original-article] {
|
|
13
|
+
page-break-before: always;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
@media print {
|
|
17
|
+
.yfm .yfm-cut-title {
|
|
18
|
+
padding-left: 0;
|
|
19
|
+
}
|
|
20
|
+
.yfm .yfm-cut-title:before {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
.yfm .yfm-cut-content {
|
|
24
|
+
height: auto;
|
|
25
|
+
display: block;
|
|
26
|
+
padding: 5px 0 15px 30px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol {
|
|
30
|
+
counter-reset: cut-list;
|
|
31
|
+
}
|
|
32
|
+
.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol > li {
|
|
33
|
+
counter-increment: cut-list;
|
|
34
|
+
}
|
|
35
|
+
.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol > li::before {
|
|
36
|
+
content: counters(cut-list, ".") ". ";
|
|
37
|
+
}
|
|
38
|
+
@media print {
|
|
39
|
+
.yfm .yfm-note {
|
|
40
|
+
page-break-inside: avoid;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.yfm .yfm-table-container {
|
|
44
|
+
position: relative;
|
|
45
|
+
}
|
|
46
|
+
.yfm .yfm-table-container > table {
|
|
47
|
+
overflow: visible;
|
|
48
|
+
overflow: initial;
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
max-width: none;
|
|
53
|
+
max-width: initial;
|
|
54
|
+
transform-origin: top left;
|
|
55
|
+
}
|
|
56
|
+
.yfm .yfm-table-container > table thead {
|
|
57
|
+
display: table-row-group;
|
|
58
|
+
}
|
|
59
|
+
.yfm .yfm-table-container > table th,
|
|
60
|
+
.yfm .yfm-table-container > table td {
|
|
61
|
+
page-break-inside: avoid;
|
|
62
|
+
white-space: pre-wrap;
|
|
63
|
+
text-overflow: initial;
|
|
64
|
+
}
|
|
65
|
+
@media print {
|
|
66
|
+
.yfm .yfm-tab-list {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
.yfm .yfm-tab-panel {
|
|
70
|
+
visibility: visible;
|
|
71
|
+
height: auto;
|
|
72
|
+
display: block;
|
|
73
|
+
}
|
|
74
|
+
.yfm .yfm-tab-panel:before {
|
|
75
|
+
content: attr(data-title);
|
|
76
|
+
margin-bottom: -1px;
|
|
77
|
+
margin-right: 20px;
|
|
78
|
+
border-bottom: 2px solid transparent;
|
|
79
|
+
line-height: 33px;
|
|
80
|
+
font-weight: 700;
|
|
81
|
+
outline: 0;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
@media print {
|
|
86
|
+
.yfm .yfm-term_title {
|
|
87
|
+
color: currentColor;
|
|
88
|
+
border-bottom: none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/*# sourceMappingURL=print.css.map */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/scss/home/runner/work/transform/transform/src/scss/print/code.scss", "../../src/scss/%3Cinput%20css%20hSgT_S%3E", "../../src/scss/home/runner/work/transform/transform/src/scss/print/common.scss", "../../src/scss/home/runner/work/transform/transform/src/scss/print/cut.scss", "../../src/scss/home/runner/work/transform/transform/src/scss/print/note.scss", "../../src/scss/home/runner/work/transform/transform/src/scss/print/table.scss", "../../src/scss/home/runner/work/transform/transform/src/scss/print/tabs.scss", "../../src/scss/home/runner/work/transform/transform/src/scss/print/term.scss"],
|
|
4
|
+
"sourcesContent": ["@media print {\n .yfm {\n .yfm-clipboard {\n & > pre > code {\n white-space: pre-wrap;\n }\n }\n }\n}", "@media print {\n .yfm .yfm-clipboard > pre > code {\n white-space: pre-wrap;\n }\n}\n@media print {\n .yfm .yfm-page__delimeter {\n display: none;\n }\n .yfm h1[data-original-article], .yfm h2[data-original-article] {\n page-break-before: always;\n }\n}\n@media print {\n .yfm .yfm-cut-title {\n padding-left: 0;\n }\n .yfm .yfm-cut-title:before {\n display: none;\n }\n .yfm .yfm-cut-content {\n height: auto;\n display: block;\n padding: 5px 0 15px 30px;\n }\n}\n.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol {\n counter-reset: cut-list;\n}\n.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol > li {\n counter-increment: cut-list;\n}\n.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol > li::before {\n content: counters(cut-list, \".\") \". \";\n}\n\n@media print {\n .yfm .yfm-note {\n page-break-inside: avoid;\n }\n}\n.yfm .yfm-table-container {\n position: relative;\n}\n.yfm .yfm-table-container > table {\n overflow: initial;\n position: absolute;\n top: 0;\n left: 0;\n max-width: initial;\n transform-origin: top left;\n}\n.yfm .yfm-table-container > table thead {\n display: table-row-group;\n}\n.yfm .yfm-table-container > table th, .yfm .yfm-table-container > table td {\n page-break-inside: avoid;\n white-space: pre-wrap;\n text-overflow: initial;\n}\n\n@media print {\n .yfm .yfm-tab-list {\n display: none;\n }\n .yfm .yfm-tab-panel {\n visibility: visible;\n height: auto;\n display: block;\n }\n .yfm .yfm-tab-panel:before {\n content: attr(data-title);\n margin-bottom: -1px;\n margin-right: 20px;\n border-bottom: 2px solid transparent;\n line-height: 33px;\n font-weight: 700;\n outline: 0;\n cursor: pointer;\n }\n}\n@media print {\n .yfm .yfm-term_title {\n color: currentColor;\n border-bottom: none;\n }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2hvbWUvcnVubmVyL3dvcmsvdHJhbnNmb3JtL3RyYW5zZm9ybS9zcmMvc2NzcyIsInNvdXJjZXMiOlsicHJpbnQvY29kZS5zY3NzIiwicHJpbnQvY29tbW9uLnNjc3MiLCJwcmludC9jdXQuc2NzcyIsInByaW50L25vdGUuc2NzcyIsInByaW50L3RhYmxlLnNjc3MiLCJwcmludC90YWJzLnNjc3MiLCJwcmludC90ZXJtLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFHWTtJQUNJOzs7QUNKaEI7RUFFUTtJQUNJOztFQUlBO0lBQ0k7OztBQ1JoQjtFQUdZO0lBQ0k7O0VBRUE7SUFDSTs7RUFJUjtJQUNJO0lBQ0E7SUFDQTs7O0FBT1o7RUFDSTs7QUFFQTtFQUNJOztBQUVBO0VBQ0k7OztBQzVCaEI7RUFFUTtJQUNJOzs7QUNGUjtFQUNJOztBQUVBO0VBQ0k7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOztBQUVBO0VBQ0k7O0FBR0o7RUFDSTtFQUNBO0VBQ0E7OztBQ25CaEI7RUFHWTtJQUNJOztFQUdKO0lBQ0k7SUFDQTtJQUNBOztFQUdKO0lBQ0k7SUFDQTtJQUNBO0lBQ0E7SUFDQTtJQUNBO0lBQ0E7SUFDQTs7O0FDckJoQjtFQUdZO0lBQ0k7SUFDQSIsInNvdXJjZXNDb250ZW50IjpbIkBtZWRpYSBwcmludCB7XG4gICAgLnlmbSB7XG4gICAgICAgIC55Zm0tY2xpcGJvYXJkIHtcbiAgICAgICAgICAgICYgPiBwcmUgPiBjb2RlIHtcbiAgICAgICAgICAgICAgICB3aGl0ZS1zcGFjZTogcHJlLXdyYXA7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59IiwiQG1lZGlhIHByaW50IHtcbiAgICAueWZtIHtcbiAgICAgICAgLnlmbS1wYWdlX19kZWxpbWV0ZXIge1xuICAgICAgICAgICAgZGlzcGxheTogbm9uZTtcbiAgICAgICAgfVxuXG4gICAgICAgIGgxLCBoMiB7XG4gICAgICAgICAgICAmW2RhdGEtb3JpZ2luYWwtYXJ0aWNsZV0ge1xuICAgICAgICAgICAgICAgIHBhZ2UtYnJlYWstYmVmb3JlOiBhbHdheXM7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59IiwiQG1lZGlhIHByaW50IHtcbiAgICAueWZtIHtcbiAgICAgICAgLnlmbS1jdXQge1xuICAgICAgICAgICAgJi10aXRsZSB7XG4gICAgICAgICAgICAgICAgcGFkZGluZy1sZWZ0OiAwO1xuXG4gICAgICAgICAgICAgICAgJjpiZWZvcmUge1xuICAgICAgICAgICAgICAgICAgICBkaXNwbGF5OiBub25lO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJi1jb250ZW50IHtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IGF1dG87XG4gICAgICAgICAgICAgICAgZGlzcGxheTogYmxvY2s7XG4gICAgICAgICAgICAgICAgcGFkZGluZzogNXB4IDAgMTVweCAzMHB4O1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufVxuXG4ueWZtLWN1dC1jb250ZW50IHtcbiAgICAueWZtOm5vdCgueWZtX25vLWxpc3QtcmVzZXQpICYgb2wge1xuICAgICAgICBjb3VudGVyLXJlc2V0OiBjdXQtbGlzdDtcblxuICAgICAgICAmID4gbGkge1xuICAgICAgICAgICAgY291bnRlci1pbmNyZW1lbnQ6IGN1dC1saXN0O1xuXG4gICAgICAgICAgICAmOjpiZWZvcmUge1xuICAgICAgICAgICAgICAgIGNvbnRlbnQ6IGNvdW50ZXJzKGN1dC1saXN0LCAnLicpICcuICc7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59XG4iLCJAbWVkaWEgcHJpbnQge1xuICAgIC55Zm0ge1xuICAgICAgICAueWZtLW5vdGUge1xuICAgICAgICAgICAgcGFnZS1icmVhay1pbnNpZGU6IGF2b2lkO1xuICAgICAgICB9XG4gICAgfVxufVxuIiwiLnlmbSB7XG4gICAgLnlmbS10YWJsZS1jb250YWluZXIge1xuICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG5cbiAgICAgICAgJiA+IHRhYmxlIHtcbiAgICAgICAgICAgIG92ZXJmbG93OiBpbml0aWFsO1xuICAgICAgICAgICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgICAgICAgdG9wOiAwO1xuICAgICAgICAgICAgbGVmdDogMDtcbiAgICAgICAgICAgIG1heC13aWR0aDogaW5pdGlhbDtcbiAgICAgICAgICAgIHRyYW5zZm9ybS1vcmlnaW46IHRvcCBsZWZ0O1xuXG4gICAgICAgICAgICB0aGVhZCB7XG4gICAgICAgICAgICAgICAgZGlzcGxheTogdGFibGUtcm93LWdyb3VwO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aCwgdGQge1xuICAgICAgICAgICAgICAgIHBhZ2UtYnJlYWstaW5zaWRlOiBhdm9pZDtcbiAgICAgICAgICAgICAgICB3aGl0ZS1zcGFjZTogcHJlLXdyYXA7XG4gICAgICAgICAgICAgICAgdGV4dC1vdmVyZmxvdzogaW5pdGlhbDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn0iLCJAbWVkaWEgcHJpbnQge1xuICAgIC55Zm0ge1xuICAgICAgICAueWZtLXRhYiB7XG4gICAgICAgICAgICAmLWxpc3Qge1xuICAgICAgICAgICAgICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICYtcGFuZWwge1xuICAgICAgICAgICAgICAgIHZpc2liaWxpdHk6IHZpc2libGU7XG4gICAgICAgICAgICAgICAgaGVpZ2h0OiBhdXRvO1xuICAgICAgICAgICAgICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmLXBhbmVsOmJlZm9yZSB7XG4gICAgICAgICAgICAgICAgY29udGVudDogYXR0cihkYXRhLXRpdGxlKTtcbiAgICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAtMXB4O1xuICAgICAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMjBweDtcbiAgICAgICAgICAgICAgICBib3JkZXItYm90dG9tOiAycHggc29saWQgdHJhbnNwYXJlbnQ7XG4gICAgICAgICAgICAgICAgbGluZS1oZWlnaHQ6IDMzcHg7XG4gICAgICAgICAgICAgICAgZm9udC13ZWlnaHQ6IDcwMDtcbiAgICAgICAgICAgICAgICBvdXRsaW5lOiAwO1xuICAgICAgICAgICAgICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn1cbiIsIkBtZWRpYSBwcmludCB7XG4gICAgLnlmbSB7XG4gICAgICAgIC55Zm0tdGVybSB7XG4gICAgICAgICAgICAmX3RpdGxlIHtcbiAgICAgICAgICAgICAgICBjb2xvcjogY3VycmVudENvbG9yO1xuICAgICAgICAgICAgICAgIGJvcmRlci1ib3R0b206IG5vbmU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59Il19 */", "@media print {\n .yfm {\n .yfm-page__delimeter {\n display: none;\n }\n\n h1, h2 {\n &[data-original-article] {\n page-break-before: always;\n }\n }\n }\n}", "@media print {\n .yfm {\n .yfm-cut {\n &-title {\n padding-left: 0;\n\n &:before {\n display: none;\n }\n }\n\n &-content {\n height: auto;\n display: block;\n padding: 5px 0 15px 30px;\n }\n }\n }\n}\n\n.yfm-cut-content {\n .yfm:not(.yfm_no-list-reset) & ol {\n counter-reset: cut-list;\n\n & > li {\n counter-increment: cut-list;\n\n &::before {\n content: counters(cut-list, '.') '. ';\n }\n }\n }\n}\n", "@media print {\n .yfm {\n .yfm-note {\n page-break-inside: avoid;\n }\n }\n}\n", ".yfm {\n .yfm-table-container {\n position: relative;\n\n & > table {\n overflow: initial;\n position: absolute;\n top: 0;\n left: 0;\n max-width: initial;\n transform-origin: top left;\n\n thead {\n display: table-row-group;\n }\n\n th, td {\n page-break-inside: avoid;\n white-space: pre-wrap;\n text-overflow: initial;\n }\n }\n }\n}", "@media print {\n .yfm {\n .yfm-tab {\n &-list {\n display: none;\n }\n\n &-panel {\n visibility: visible;\n height: auto;\n display: block;\n }\n\n &-panel:before {\n content: attr(data-title);\n margin-bottom: -1px;\n margin-right: 20px;\n border-bottom: 2px solid transparent;\n line-height: 33px;\n font-weight: 700;\n outline: 0;\n cursor: pointer;\n }\n }\n }\n}\n", "@media print {\n .yfm {\n .yfm-term {\n &_title {\n color: currentColor;\n border-bottom: none;\n }\n }\n }\n}"],
|
|
5
|
+
"mappings": ";AAAA,OAAA;AAGY,GAAA,IAAA,CAAA,cAAA,EAAA,IAAA,EAAA;AACI,iBAAA;ACDd;AACF;ACJA,OAAA;AAEQ,GFCI,IEDJ,CAAA;AACI,aAAA;ADKV;ACDU,GFJA,IEIA,EAAA,CAAA;EAAA,CFJA,IEIA,EAAA,CAAA;AACI,uBAAA;ADGd;AACF;AEZA,OAAA;AAGY,GHAA,IGAA,CAAA;AACI,kBAAA;AFYd;AEVc,GHHJ,IGGI,CAHJ,aAGI;AACI,aAAA;AFYlB;AERU,GHRA,IGQA,CAAA;AACI,YAAA;AACA,aAAA;AACA,aAAA,IAAA,EAAA,KAAA;AFUd;AACF;AEJI,CHlBQ,GGkBR,KAAA,CAAA,mBAAA,CAVQ,gBAUR;AACI,iBAAA;AFMR;AEJQ,CHrBI,GGqBJ,KAAA,CAHJ,mBAGI,CAbI,gBAaJ,GAAA,EAAA;AACI,qBAAA;AFMZ;AEJY,CHxBA,GGwBA,KAAA,CANR,mBAMQ,CAhBA,gBAgBA,GAAA,EAAA,EAAA;AACI,WAAA,SAAA,QAAA,EAAA,KAAA;AFMhB;AGlCA,OAAA;AAEQ,GJCI,IIDJ,CAAA;AACI,uBAAA;AHoCV;AACF;AIvCI,CLEQ,IKFR,CAAA;AACI,YAAA;AJyCR;AIvCQ,CLDI,IKCJ,CAHJ,oBAGI,EAAA;AACI,YAAA;AAAA,YAAA;AACA,YAAA;AACA,OAAA;AACA,QAAA;AACA,aAAA;AAAA,aAAA;AACA,oBAAA,IAAA;AJyCZ;AIvCY,CLTA,IKSA,CAXR,oBAWQ,EAAA,MAAA;AACI,WAAA;AJyChB;AItCY,CLbA,IKaA,CAfR,oBAeQ,EAAA,MAAA;AAAA,CLbA,IKaA,CAfR,oBAeQ,EAAA,MAAA;AACI,qBAAA;AACA,eAAA;AACA,iBAAA;AJwChB;AK3DA,OAAA;AAGY,GNAA,IMAA,CAAA;AACI,aAAA;AL4Dd;AKzDU,GNJA,IMIA,CAAA;AACI,gBAAA;AACA,YAAA;AACA,aAAA;AL2Dd;AKxDU,GNVA,IMUA,CANA,aAMA;AACI,aAAA,KAAA;AACA,mBAAA;AACA,kBAAA;AACA,mBAAA,IAAA,MAAA;AACA,iBAAA;AACA,iBAAA;AACA,aAAA;AACA,YAAA;AL0Dd;AACF;AMhFA,OAAA;AAGY,GPAA,IOAA,CAAA;AACI,WAAA;AACA,mBAAA;ANgFd;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|