Alexey Pyltsyn
ee4c984bc7
feat(theme-classic): code block showLineNumbers ( #7007 )
2022-04-13 14:42:35 +02:00
Joshua Chen
e610a4ac00
test: improve test coverage ( #7113 )
2022-04-05 14:09:19 +08:00
duanwilliam
b5fc9a6b6d
fix(theme): add bash style to Markdown comment styles ( #7049 )
...
* docs: fix code block line highlighting in md syntax highlighting
* properly fix
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-29 09:23:03 +08:00
Joshua Chen
755b03861c
fix(theme): only parse HTML- and JSX-style comments in MD code ( #7033 )
2022-03-28 09:57:04 +08:00
Joshua Chen
b456a64f61
feat(theme-common): JSDoc for all APIs ( #6974 )
...
* feat(theme-common): JSDoc for all APIs
* fix tests
2022-03-23 21:39:19 +08:00
Joshua Chen
3a4b9b4c30
refactor: install eslint-plugin-regexp ( #6906 )
...
* refactor: install eslint-plugin-regexp
* simplify
* simplify
* fix
2022-03-13 18:32:17 +08:00
Joshua Chen
4db0c620de
refactor: enable a few TS flags ( #6852 )
...
* refactor: enable a few TS flags
* refactor
* revert to working version
* fix
* better
* change
2022-03-06 13:09:10 +08:00
Joshua Chen
1cefb643dd
refactor: enforce named capture groups; clean up regexes ( #6524 )
...
* refactor: enforce named capture groups; clean up regexes
* fixes
* fix
2022-02-01 17:43:15 +08:00
Joshua Chen
c45281a581
feat(theme-classic): usable CodeBlock outside markdown ( #6216 )
2021-12-29 17:17:09 +01:00
Joshua Chen
334470b5d4
refactor(theme-classic): move some logic of CodeBlock to theme-common ( #5922 )
2021-11-12 16:43:40 +01:00
duanwilliam
1abadbaeca
fix(v2): fix code block title parsing, support multiple metastring attributes ( #4541 )
...
* feat: lazy match classic theme code block title
* feat: allow single quotes for classic theme code block title
* refactor(v2): extract parseCodeBlockTitle function
extract `parseCodeBlockTitle` function to add tests for title parsing
* test(v2): add tests for parseCodeBlockTitle
* move code block title parser to theme-common
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-04-14 10:24:52 +02:00