@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.
Files changed (421) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +76 -0
  3. package/README.ru.md +76 -0
  4. package/dist/css/print.css +91 -0
  5. package/dist/css/print.css.map +7 -0
  6. package/dist/css/yfm.css +1016 -0
  7. package/dist/css/yfm.css.map +7 -0
  8. package/dist/css/yfm.min.css +2 -0
  9. package/dist/css/yfm.min.css.map +7 -0
  10. package/dist/js/print.js +51 -0
  11. package/dist/js/print.js.map +7 -0
  12. package/dist/js/yfm.js +673 -0
  13. package/dist/js/yfm.js.map +7 -0
  14. package/dist/js/yfm.min.js +2 -0
  15. package/dist/js/yfm.min.js.map +7 -0
  16. package/lib/frontmatter/common.d.ts +21 -0
  17. package/lib/frontmatter/common.js +24 -0
  18. package/lib/frontmatter/common.js.map +1 -0
  19. package/lib/frontmatter/emplace.d.ts +4 -0
  20. package/lib/frontmatter/emplace.js +21 -0
  21. package/lib/frontmatter/emplace.js.map +1 -0
  22. package/lib/frontmatter/extract.d.ts +8 -0
  23. package/lib/frontmatter/extract.js +65 -0
  24. package/lib/frontmatter/extract.js.map +1 -0
  25. package/lib/frontmatter/index.d.ts +4 -0
  26. package/lib/frontmatter/index.js +23 -0
  27. package/lib/frontmatter/index.js.map +1 -0
  28. package/lib/frontmatter/transformValues.d.ts +2 -0
  29. package/lib/frontmatter/transformValues.js +20 -0
  30. package/lib/frontmatter/transformValues.js.map +1 -0
  31. package/lib/fsContext.d.ts +7 -0
  32. package/lib/fsContext.js +21 -0
  33. package/lib/fsContext.js.map +1 -0
  34. package/lib/getObject.d.ts +2 -0
  35. package/lib/getObject.js +14 -0
  36. package/lib/getObject.js.map +1 -0
  37. package/lib/headings.d.ts +4 -0
  38. package/lib/headings.js +75 -0
  39. package/lib/headings.js.map +1 -0
  40. package/lib/highlight.d.ts +3 -0
  41. package/lib/highlight.js +29 -0
  42. package/lib/highlight.js.map +1 -0
  43. package/lib/index.d.ts +7 -0
  44. package/lib/index.js +37 -0
  45. package/lib/index.js.map +1 -0
  46. package/lib/liquid/conditions.d.ts +6 -0
  47. package/lib/liquid/conditions.js +243 -0
  48. package/lib/liquid/conditions.js.map +1 -0
  49. package/lib/liquid/cycles.d.ts +4 -0
  50. package/lib/liquid/cycles.js +157 -0
  51. package/lib/liquid/cycles.js.map +1 -0
  52. package/lib/liquid/errors.d.ts +3 -0
  53. package/lib/liquid/errors.js +13 -0
  54. package/lib/liquid/errors.js.map +1 -0
  55. package/lib/liquid/evaluation.d.ts +4 -0
  56. package/lib/liquid/evaluation.js +143 -0
  57. package/lib/liquid/evaluation.js.map +1 -0
  58. package/lib/liquid/filters.d.ts +9 -0
  59. package/lib/liquid/filters.js +22 -0
  60. package/lib/liquid/filters.js.map +1 -0
  61. package/lib/liquid/index.d.ts +16 -0
  62. package/lib/liquid/index.js +121 -0
  63. package/lib/liquid/index.js.map +1 -0
  64. package/lib/liquid/legacyConditions.d.ts +4 -0
  65. package/lib/liquid/legacyConditions.js +174 -0
  66. package/lib/liquid/legacyConditions.js.map +1 -0
  67. package/lib/liquid/lexical.d.ts +16 -0
  68. package/lib/liquid/lexical.js +82 -0
  69. package/lib/liquid/lexical.js.map +1 -0
  70. package/lib/liquid/services/argv.d.ts +16 -0
  71. package/lib/liquid/services/argv.js +17 -0
  72. package/lib/liquid/services/argv.js.map +1 -0
  73. package/lib/liquid/sourceMap.d.ts +19 -0
  74. package/lib/liquid/sourceMap.js +51 -0
  75. package/lib/liquid/sourceMap.js.map +1 -0
  76. package/lib/liquid/substitutions.d.ts +2 -0
  77. package/lib/liquid/substitutions.js +56 -0
  78. package/lib/liquid/substitutions.js.map +1 -0
  79. package/lib/liquid/utils.d.ts +8 -0
  80. package/lib/liquid/utils.js +24 -0
  81. package/lib/liquid/utils.js.map +1 -0
  82. package/lib/log.d.ts +18 -0
  83. package/lib/log.js +54 -0
  84. package/lib/log.js.map +1 -0
  85. package/lib/md.d.ts +14 -0
  86. package/lib/md.js +121 -0
  87. package/lib/md.js.map +1 -0
  88. package/lib/plugins/anchors/collect.d.ts +5 -0
  89. package/lib/plugins/anchors/collect.js +82 -0
  90. package/lib/plugins/anchors/collect.js.map +1 -0
  91. package/lib/plugins/anchors/constants.d.ts +2 -0
  92. package/lib/plugins/anchors/constants.js +6 -0
  93. package/lib/plugins/anchors/constants.js.map +1 -0
  94. package/lib/plugins/anchors/index.d.ts +9 -0
  95. package/lib/plugins/anchors/index.js +140 -0
  96. package/lib/plugins/anchors/index.js.map +1 -0
  97. package/lib/plugins/block-anchor/block-anchor.d.ts +5 -0
  98. package/lib/plugins/block-anchor/block-anchor.js +53 -0
  99. package/lib/plugins/block-anchor/block-anchor.js.map +1 -0
  100. package/lib/plugins/block-anchor/index.d.ts +3 -0
  101. package/lib/plugins/block-anchor/index.js +9 -0
  102. package/lib/plugins/block-anchor/index.js.map +1 -0
  103. package/lib/plugins/changelog/collect.d.ts +8 -0
  104. package/lib/plugins/changelog/collect.js +54 -0
  105. package/lib/plugins/changelog/collect.js.map +1 -0
  106. package/lib/plugins/changelog/index.d.ts +6 -0
  107. package/lib/plugins/changelog/index.js +134 -0
  108. package/lib/plugins/changelog/index.js.map +1 -0
  109. package/lib/plugins/changelog/types.d.ts +10 -0
  110. package/lib/plugins/changelog/types.js +3 -0
  111. package/lib/plugins/changelog/types.js.map +1 -0
  112. package/lib/plugins/checkbox/checkbox.d.ts +19 -0
  113. package/lib/plugins/checkbox/checkbox.js +103 -0
  114. package/lib/plugins/checkbox/checkbox.js.map +1 -0
  115. package/lib/plugins/checkbox/index.d.ts +8 -0
  116. package/lib/plugins/checkbox/index.js +12 -0
  117. package/lib/plugins/checkbox/index.js.map +1 -0
  118. package/lib/plugins/code.d.ts +3 -0
  119. package/lib/plugins/code.js +63 -0
  120. package/lib/plugins/code.js.map +1 -0
  121. package/lib/plugins/cut.d.ts +4 -0
  122. package/lib/plugins/cut.js +4 -0
  123. package/lib/plugins/cut.js.map +1 -0
  124. package/lib/plugins/deflist.d.ts +3 -0
  125. package/lib/plugins/deflist.js +8 -0
  126. package/lib/plugins/deflist.js.map +1 -0
  127. package/lib/plugins/file/const.d.ts +27 -0
  128. package/lib/plugins/file/const.js +47 -0
  129. package/lib/plugins/file/const.js.map +1 -0
  130. package/lib/plugins/file/file.d.ts +8 -0
  131. package/lib/plugins/file/file.js +63 -0
  132. package/lib/plugins/file/file.js.map +1 -0
  133. package/lib/plugins/file/index.d.ts +4 -0
  134. package/lib/plugins/file/index.js +9 -0
  135. package/lib/plugins/file/index.js.map +1 -0
  136. package/lib/plugins/images/collect.d.ts +8 -0
  137. package/lib/plugins/images/collect.js +45 -0
  138. package/lib/plugins/images/collect.js.map +1 -0
  139. package/lib/plugins/images/index.d.ts +11 -0
  140. package/lib/plugins/images/index.js +108 -0
  141. package/lib/plugins/images/index.js.map +1 -0
  142. package/lib/plugins/imsize/const.d.ts +7 -0
  143. package/lib/plugins/imsize/const.js +12 -0
  144. package/lib/plugins/imsize/const.js.map +1 -0
  145. package/lib/plugins/imsize/helpers.d.ts +6 -0
  146. package/lib/plugins/imsize/helpers.js +64 -0
  147. package/lib/plugins/imsize/helpers.js.map +1 -0
  148. package/lib/plugins/imsize/index.d.ts +8 -0
  149. package/lib/plugins/imsize/index.js +12 -0
  150. package/lib/plugins/imsize/index.js.map +1 -0
  151. package/lib/plugins/imsize/plugin.d.ts +3 -0
  152. package/lib/plugins/imsize/plugin.js +188 -0
  153. package/lib/plugins/imsize/plugin.js.map +1 -0
  154. package/lib/plugins/includes/collect.d.ts +3 -0
  155. package/lib/plugins/includes/collect.js +76 -0
  156. package/lib/plugins/includes/collect.js.map +1 -0
  157. package/lib/plugins/includes/index.d.ts +8 -0
  158. package/lib/plugins/includes/index.js +105 -0
  159. package/lib/plugins/includes/index.js.map +1 -0
  160. package/lib/plugins/includes/types.d.ts +15 -0
  161. package/lib/plugins/includes/types.js +3 -0
  162. package/lib/plugins/includes/types.js.map +1 -0
  163. package/lib/plugins/links/collect.d.ts +6 -0
  164. package/lib/plugins/links/collect.js +75 -0
  165. package/lib/plugins/links/collect.js.map +1 -0
  166. package/lib/plugins/links/index.d.ts +27 -0
  167. package/lib/plugins/links/index.js +189 -0
  168. package/lib/plugins/links/index.js.map +1 -0
  169. package/lib/plugins/meta.d.ts +3 -0
  170. package/lib/plugins/meta.js +8 -0
  171. package/lib/plugins/meta.js.map +1 -0
  172. package/lib/plugins/monospace.d.ts +3 -0
  173. package/lib/plugins/monospace.js +108 -0
  174. package/lib/plugins/monospace.js.map +1 -0
  175. package/lib/plugins/notes/constants.d.ts +1 -0
  176. package/lib/plugins/notes/constants.js +102 -0
  177. package/lib/plugins/notes/constants.js.map +1 -0
  178. package/lib/plugins/notes/index.d.ts +3 -0
  179. package/lib/plugins/notes/index.js +103 -0
  180. package/lib/plugins/notes/index.js.map +1 -0
  181. package/lib/plugins/sup.d.ts +3 -0
  182. package/lib/plugins/sup.js +8 -0
  183. package/lib/plugins/sup.js.map +1 -0
  184. package/lib/plugins/table/attrs.d.ts +18 -0
  185. package/lib/plugins/table/attrs.js +172 -0
  186. package/lib/plugins/table/attrs.js.map +1 -0
  187. package/lib/plugins/table/index.d.ts +3 -0
  188. package/lib/plugins/table/index.js +406 -0
  189. package/lib/plugins/table/index.js.map +1 -0
  190. package/lib/plugins/tabs.d.ts +4 -0
  191. package/lib/plugins/tabs.js +4 -0
  192. package/lib/plugins/tabs.js.map +1 -0
  193. package/lib/plugins/term/constants.d.ts +1 -0
  194. package/lib/plugins/term/constants.js +5 -0
  195. package/lib/plugins/term/constants.js.map +1 -0
  196. package/lib/plugins/term/index.d.ts +3 -0
  197. package/lib/plugins/term/index.js +110 -0
  198. package/lib/plugins/term/index.js.map +1 -0
  199. package/lib/plugins/term/termDefinitions.d.ts +4 -0
  200. package/lib/plugins/term/termDefinitions.js +127 -0
  201. package/lib/plugins/term/termDefinitions.js.map +1 -0
  202. package/lib/plugins/typings.d.ts +1 -0
  203. package/lib/plugins/typings.js +18 -0
  204. package/lib/plugins/typings.js.map +1 -0
  205. package/lib/plugins/utils.d.ts +6 -0
  206. package/lib/plugins/utils.js +30 -0
  207. package/lib/plugins/utils.js.map +1 -0
  208. package/lib/plugins/video/const.d.ts +12 -0
  209. package/lib/plugins/video/const.js +26 -0
  210. package/lib/plugins/video/const.js.map +1 -0
  211. package/lib/plugins/video/index.d.ts +8 -0
  212. package/lib/plugins/video/index.js +103 -0
  213. package/lib/plugins/video/index.js.map +1 -0
  214. package/lib/plugins/video/parsers.d.ts +8 -0
  215. package/lib/plugins/video/parsers.js +82 -0
  216. package/lib/plugins/video/parsers.js.map +1 -0
  217. package/lib/plugins/video/types.d.ts +42 -0
  218. package/lib/plugins/video/types.js +3 -0
  219. package/lib/plugins/video/types.js.map +1 -0
  220. package/lib/plugins/video/utils.d.ts +2 -0
  221. package/lib/plugins/video/utils.js +28 -0
  222. package/lib/plugins/video/utils.js.map +1 -0
  223. package/lib/plugins.d.ts +3 -0
  224. package/lib/plugins.js +38 -0
  225. package/lib/plugins.js.map +1 -0
  226. package/lib/preprocessors/included/index.d.ts +5 -0
  227. package/lib/preprocessors/included/index.js +71 -0
  228. package/lib/preprocessors/included/index.js.map +1 -0
  229. package/lib/preprocessors.d.ts +3 -0
  230. package/lib/preprocessors.js +8 -0
  231. package/lib/preprocessors.js.map +1 -0
  232. package/lib/sanitize.d.ts +13 -0
  233. package/lib/sanitize.js +580 -0
  234. package/lib/sanitize.js.map +1 -0
  235. package/lib/title.d.ts +7 -0
  236. package/lib/title.js +18 -0
  237. package/lib/title.js.map +1 -0
  238. package/lib/typings.d.ts +117 -0
  239. package/lib/typings.js +3 -0
  240. package/lib/typings.js.map +1 -0
  241. package/lib/utils.d.ts +15 -0
  242. package/lib/utils.js +91 -0
  243. package/lib/utils.js.map +1 -0
  244. package/lib/utilsFS.d.ts +35 -0
  245. package/lib/utilsFS.js +101 -0
  246. package/lib/utilsFS.js.map +1 -0
  247. package/lib/yfmlint/index.d.ts +26 -0
  248. package/lib/yfmlint/index.js +77 -0
  249. package/lib/yfmlint/index.js.map +1 -0
  250. package/lib/yfmlint/markdownlint-custom-rule/index.d.ts +9 -0
  251. package/lib/yfmlint/markdownlint-custom-rule/index.js +22 -0
  252. package/lib/yfmlint/markdownlint-custom-rule/index.js.map +1 -0
  253. package/lib/yfmlint/markdownlint-custom-rule/yfm001.d.ts +2 -0
  254. package/lib/yfmlint/markdownlint-custom-rule/yfm001.js +28 -0
  255. package/lib/yfmlint/markdownlint-custom-rule/yfm001.js.map +1 -0
  256. package/lib/yfmlint/markdownlint-custom-rule/yfm002.d.ts +2 -0
  257. package/lib/yfmlint/markdownlint-custom-rule/yfm002.js +33 -0
  258. package/lib/yfmlint/markdownlint-custom-rule/yfm002.js.map +1 -0
  259. package/lib/yfmlint/markdownlint-custom-rule/yfm003.d.ts +2 -0
  260. package/lib/yfmlint/markdownlint-custom-rule/yfm003.js +33 -0
  261. package/lib/yfmlint/markdownlint-custom-rule/yfm003.js.map +1 -0
  262. package/lib/yfmlint/markdownlint-custom-rule/yfm004.d.ts +2 -0
  263. package/lib/yfmlint/markdownlint-custom-rule/yfm004.js +28 -0
  264. package/lib/yfmlint/markdownlint-custom-rule/yfm004.js.map +1 -0
  265. package/lib/yfmlint/markdownlint-custom-rule/yfm005.d.ts +2 -0
  266. package/lib/yfmlint/markdownlint-custom-rule/yfm005.js +28 -0
  267. package/lib/yfmlint/markdownlint-custom-rule/yfm005.js.map +1 -0
  268. package/lib/yfmlint/markdownlint-custom-rule/yfm006.d.ts +2 -0
  269. package/lib/yfmlint/markdownlint-custom-rule/yfm006.js +28 -0
  270. package/lib/yfmlint/markdownlint-custom-rule/yfm006.js.map +1 -0
  271. package/lib/yfmlint/markdownlint-custom-rule/yfm007.d.ts +2 -0
  272. package/lib/yfmlint/markdownlint-custom-rule/yfm007.js +29 -0
  273. package/lib/yfmlint/markdownlint-custom-rule/yfm007.js.map +1 -0
  274. package/lib/yfmlint/markdownlint-custom-rule/yfm008.d.ts +2 -0
  275. package/lib/yfmlint/markdownlint-custom-rule/yfm008.js +28 -0
  276. package/lib/yfmlint/markdownlint-custom-rule/yfm008.js.map +1 -0
  277. package/lib/yfmlint/markdownlint-custom-rule/yfm009.d.ts +2 -0
  278. package/lib/yfmlint/markdownlint-custom-rule/yfm009.js +47 -0
  279. package/lib/yfmlint/markdownlint-custom-rule/yfm009.js.map +1 -0
  280. package/lib/yfmlint/typings.d.ts +14 -0
  281. package/lib/yfmlint/typings.js +3 -0
  282. package/lib/yfmlint/typings.js.map +1 -0
  283. package/lib/yfmlint/utils.d.ts +9 -0
  284. package/lib/yfmlint/utils.js +22 -0
  285. package/lib/yfmlint/utils.js.map +1 -0
  286. package/lib/yfmlint/yfmlint.d.ts +3 -0
  287. package/lib/yfmlint/yfmlint.js +75 -0
  288. package/lib/yfmlint/yfmlint.js.map +1 -0
  289. package/package.json +103 -0
  290. package/src/.eslintrc.js +3 -0
  291. package/src/js/code.ts +65 -0
  292. package/src/js/globals.d.ts +13 -0
  293. package/src/js/index.ts +8 -0
  294. package/src/js/patch.ts +9 -0
  295. package/src/js/polyfill.js +27 -0
  296. package/src/js/print/index.ts +1 -0
  297. package/src/js/print/table.ts +62 -0
  298. package/src/js/term/index.ts +51 -0
  299. package/src/js/term/utils.ts +240 -0
  300. package/src/js/utils.ts +9 -0
  301. package/src/js/wide-mode/apply.ts +34 -0
  302. package/src/js/wide-mode/constants.ts +1 -0
  303. package/src/js/wide-mode/globals.d.ts +12 -0
  304. package/src/js/wide-mode/icons/close.ts +1 -0
  305. package/src/js/wide-mode/icons/expand.ts +1 -0
  306. package/src/js/wide-mode/index.ts +5 -0
  307. package/src/js/wide-mode/modal.ts +108 -0
  308. package/src/scss/_anchor.scss +46 -0
  309. package/src/scss/_code.scss +40 -0
  310. package/src/scss/_common.scss +416 -0
  311. package/src/scss/_cut.scss +55 -0
  312. package/src/scss/_file.scss +33 -0
  313. package/src/scss/_highlight.scss +80 -0
  314. package/src/scss/_modal.scss +121 -0
  315. package/src/scss/_note.scss +64 -0
  316. package/src/scss/_table.scss +32 -0
  317. package/src/scss/_term.scss +76 -0
  318. package/src/scss/brand.scss +48 -0
  319. package/src/scss/print/code.scss +9 -0
  320. package/src/scss/print/common.scss +13 -0
  321. package/src/scss/print/cut.scss +33 -0
  322. package/src/scss/print/note.scss +7 -0
  323. package/src/scss/print/table.scss +24 -0
  324. package/src/scss/print/tabs.scss +26 -0
  325. package/src/scss/print/term.scss +10 -0
  326. package/src/scss/print.scss +7 -0
  327. package/src/scss/private.scss +44 -0
  328. package/src/scss/yfm.scss +12 -0
  329. package/src/transform/frontmatter/common.ts +27 -0
  330. package/src/transform/frontmatter/emplace.ts +24 -0
  331. package/src/transform/frontmatter/extract.ts +94 -0
  332. package/src/transform/frontmatter/index.ts +4 -0
  333. package/src/transform/frontmatter/transformValues.ts +26 -0
  334. package/src/transform/fsContext.ts +22 -0
  335. package/src/transform/getObject.ts +17 -0
  336. package/src/transform/headings.ts +92 -0
  337. package/src/transform/highlight.ts +34 -0
  338. package/src/transform/index.ts +54 -0
  339. package/src/transform/liquid/conditions.ts +331 -0
  340. package/src/transform/liquid/cycles.ts +243 -0
  341. package/src/transform/liquid/errors.ts +10 -0
  342. package/src/transform/liquid/evaluation.ts +165 -0
  343. package/src/transform/liquid/filters.ts +19 -0
  344. package/src/transform/liquid/index.ts +215 -0
  345. package/src/transform/liquid/legacyConditions.ts +252 -0
  346. package/src/transform/liquid/lexical.ts +88 -0
  347. package/src/transform/liquid/services/argv.ts +24 -0
  348. package/src/transform/liquid/sourceMap.ts +62 -0
  349. package/src/transform/liquid/substitutions.ts +75 -0
  350. package/src/transform/liquid/utils.ts +30 -0
  351. package/src/transform/log.ts +60 -0
  352. package/src/transform/md.ts +175 -0
  353. package/src/transform/plugins/anchors/collect.ts +101 -0
  354. package/src/transform/plugins/anchors/constants.ts +2 -0
  355. package/src/transform/plugins/anchors/index.ts +183 -0
  356. package/src/transform/plugins/block-anchor/block-anchor.ts +60 -0
  357. package/src/transform/plugins/block-anchor/index.ts +12 -0
  358. package/src/transform/plugins/changelog/collect.ts +74 -0
  359. package/src/transform/plugins/changelog/index.ts +169 -0
  360. package/src/transform/plugins/changelog/types.ts +10 -0
  361. package/src/transform/plugins/checkbox/checkbox.ts +122 -0
  362. package/src/transform/plugins/checkbox/index.ts +16 -0
  363. package/src/transform/plugins/code.ts +81 -0
  364. package/src/transform/plugins/cut.ts +3 -0
  365. package/src/transform/plugins/deflist.ts +6 -0
  366. package/src/transform/plugins/file/README.md +88 -0
  367. package/src/transform/plugins/file/const.ts +46 -0
  368. package/src/transform/plugins/file/file.ts +82 -0
  369. package/src/transform/plugins/file/index.ts +11 -0
  370. package/src/transform/plugins/images/collect.ts +61 -0
  371. package/src/transform/plugins/images/index.ts +156 -0
  372. package/src/transform/plugins/imsize/const.ts +7 -0
  373. package/src/transform/plugins/imsize/helpers.ts +75 -0
  374. package/src/transform/plugins/imsize/index.ts +15 -0
  375. package/src/transform/plugins/imsize/plugin.ts +215 -0
  376. package/src/transform/plugins/includes/collect.ts +128 -0
  377. package/src/transform/plugins/includes/index.ts +147 -0
  378. package/src/transform/plugins/includes/types.ts +17 -0
  379. package/src/transform/plugins/links/collect.ts +94 -0
  380. package/src/transform/plugins/links/index.ts +260 -0
  381. package/src/transform/plugins/meta.ts +6 -0
  382. package/src/transform/plugins/monospace.ts +141 -0
  383. package/src/transform/plugins/notes/constants.ts +98 -0
  384. package/src/transform/plugins/notes/index.ts +141 -0
  385. package/src/transform/plugins/sup.ts +6 -0
  386. package/src/transform/plugins/table/attrs.ts +199 -0
  387. package/src/transform/plugins/table/index.ts +505 -0
  388. package/src/transform/plugins/tabs.ts +3 -0
  389. package/src/transform/plugins/term/constants.ts +1 -0
  390. package/src/transform/plugins/term/index.ts +142 -0
  391. package/src/transform/plugins/term/termDefinitions.ts +181 -0
  392. package/src/transform/plugins/typings.ts +1 -0
  393. package/src/transform/plugins/utils.ts +39 -0
  394. package/src/transform/plugins/video/const.ts +25 -0
  395. package/src/transform/plugins/video/index.ts +134 -0
  396. package/src/transform/plugins/video/parsers.ts +83 -0
  397. package/src/transform/plugins/video/types.ts +29 -0
  398. package/src/transform/plugins/video/utils.ts +27 -0
  399. package/src/transform/plugins.ts +37 -0
  400. package/src/transform/preprocessors/included/index.ts +101 -0
  401. package/src/transform/preprocessors.ts +7 -0
  402. package/src/transform/sanitize.ts +609 -0
  403. package/src/transform/title.ts +22 -0
  404. package/src/transform/typings.ts +135 -0
  405. package/src/transform/utils.ts +104 -0
  406. package/src/transform/utilsFS.ts +160 -0
  407. package/src/transform/yfmlint/README.md +48 -0
  408. package/src/transform/yfmlint/index.ts +137 -0
  409. package/src/transform/yfmlint/markdownlint-custom-rule/index.ts +9 -0
  410. package/src/transform/yfmlint/markdownlint-custom-rule/yfm001.ts +35 -0
  411. package/src/transform/yfmlint/markdownlint-custom-rule/yfm002.ts +33 -0
  412. package/src/transform/yfmlint/markdownlint-custom-rule/yfm003.ts +33 -0
  413. package/src/transform/yfmlint/markdownlint-custom-rule/yfm004.ts +27 -0
  414. package/src/transform/yfmlint/markdownlint-custom-rule/yfm005.ts +27 -0
  415. package/src/transform/yfmlint/markdownlint-custom-rule/yfm006.ts +26 -0
  416. package/src/transform/yfmlint/markdownlint-custom-rule/yfm007.ts +28 -0
  417. package/src/transform/yfmlint/markdownlint-custom-rule/yfm008.ts +26 -0
  418. package/src/transform/yfmlint/markdownlint-custom-rule/yfm009.ts +54 -0
  419. package/src/transform/yfmlint/typings.ts +18 -0
  420. package/src/transform/yfmlint/utils.ts +33 -0
  421. 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
+ [![NPM version](https://img.shields.io/npm/v/@diplodoc/transform.svg?style=flat)](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
+ [![NPM version](https://img.shields.io/npm/v/@diplodoc/transform.svg?style=flat)](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
+ }