Sébastien Lorber
fb7ad2c1bb
fix(mdx-loader): fix md image paths with spaces bug related to transformImage encoding problem ( #10723 )
2024-11-28 16:39:43 +01:00
Balthasar Hofer
bdf55eda22
refactor(mdx-loader): streamline typescript usage for remark plugin types ( #10651 )
2024-11-07 17:42:32 +01:00
Sébastien Lorber
28f6a4907a
chore: upgrade minor dependencies ( #10610 )
2024-10-24 18:44:59 +02:00
Sébastien Lorber
9e473bd080
fix(mdx-loader): fix cross-compiler cache randomly loading mdx with client/server envs ( #10553 )
2024-10-03 23:20:57 +02:00
Sébastien Lorber
5bab0b5432
feat(core, mdx-loader): deduplicate MDX compilation - siteConfig.future.experimental_faster.mdxCrossCompilerCache
( #10479 )
2024-09-06 16:07:09 +02:00
Sébastien Lorber
a47e8dda2d
refactor(mdx-loader): re-export metadata module instead of serializing it ( #10470 )
2024-09-02 17:54:29 +02:00
Sébastien Lorber
a4329d3388
refactor(mdx-loader): read metadata from memory (loaded content) instead of fs ( #10457 )
...
* mdx loader shouldn't read metadata from file system but from memory
* comments
* refactor: apply lint autofix
* apply same for blog
* apply same for blog
* refactor: apply lint autofix
* apply same for pages
2024-08-30 08:02:26 +02:00
Sébastien Lorber
d5885c0c5d
refactor(mdx-loader): refactor mdx-loader, expose loader creation utils ( #10450 )
2024-08-27 13:52:45 +02:00
Sébastien Lorber
97bd815d9a
refactor(core): improve handling of server bundle ( #10429 )
2024-08-21 17:34:18 +02:00
Sébastien Lorber
bb499926a0
refactor(mdx-loader): remove useless usage of mdx loader this.query ( #10422 )
2024-08-19 19:17:33 +02:00
ozaki
23dbf9c0ae
feat(mdx-loader): wrap mdx content title (# Title
) in <header>
for concistency ( #10335 )
...
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-07-25 15:14:31 +02:00
Sébastien Lorber
cc506c8950
feat(mdx): support recma plugins ( #10241 )
2024-06-21 19:25:32 +02:00
Sébastien Lorber
e34614963e
fix(mdx-loader): resolve Markdown/MDX links with Remark instead of RegExp ( #10168 )
2024-05-24 19:03:23 +02:00
Alexey Ivanov
daba917e7c
feat(core): add new site config option siteConfig.markdown.anchors.maintainCase
( #10064 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-04-25 16:35:38 +02:00
Sébastien Lorber
1a5fe5c412
fix(mdx-loader): Ignore contentTitle coming after Markdown thematicBreak ( #9999 )
2024-03-29 15:07:53 +01:00
Anatoly Kopyl
3c982127d7
fix(mdx-loader): the table-of-contents should display toc/headings of imported MDX partials ( #9684 )
...
Co-authored-by: Titus <tituswormer@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2024-01-19 18:58:11 +01:00
ozaki
fd49301a45
feat(core): make broken link checker detect broken anchors - add onBrokenAnchors
config ( #9528 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2024-01-04 12:56:20 +01:00
Sébastien Lorber
bfb882c2f0
feat(mdx-loader): add support for siteConfig.markdown.remarkRehypeOptions ( #9674 )
2023-12-27 23:19:25 +01:00
Sébastien Lorber
affca7a9a2
feat: siteConfig.markdown.parseFrontMatter hook ( #9624 )
2023-12-16 02:50:26 +01:00
Sébastien Lorber
7e456ece3c
feat(mdx-loader): upgrade to MDX v3 + ( #9451 )
2023-10-26 15:47:11 +02:00
ozaki
c6762a2542
feat(mdx-loader): Remark plugin to report unused MDX / Markdown directives ( #9394 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-24 16:15:49 +02:00
Sébastien Lorber
d86aa0da5f
fix(mdx-loader): get correct error line numbers, handle front matter + contentTitle with remark ( #9386 )
2023-10-09 14:55:09 +02:00
Zwyx
e17784effa
fix(mdx-loader): prevent Open Graph images from being inserted as base64 ( #9369 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-05 14:21:27 +02:00
Sébastien Lorber
9868babf75
fix(mdx-loader): improve mdxJsxTextElementToHtml ( #9262 )
2023-08-25 19:05:16 +02:00
yosukekato165
19ee437f64
fix(mdx-loader): ensure heading anchor slugs respect GitHub emoji behavior ( #9202 )
...
Co-authored-by: YosukeKato <katouyousuke@YosukeKato.local>
2023-08-10 18:17:07 +02:00
Sébastien Lorber
ae2a09359a
fix(mdx): fix for html multi-line comments ( #9100 )
2023-06-23 19:33:03 +02:00
Sébastien Lorber
cc6d9696f0
feat(mdx): add siteConfig.markdown.format to configure the default content parser (MDX / CommonMark) ( #9097 )
2023-06-23 18:15:05 +02:00
Sébastien Lorber
0b3d5cb59e
fix(mdx-loader): loader error message should display stacktrace if no extra MDX details ( #9091 )
2023-06-22 16:44:01 +02:00
Sébastien Lorber
07ad635b69
fix: allow html syntax in MDX v2 with format md ( #8960 )
...
* attempt to support html embeds in mdx with format md
* refactor mdx loader + support embedding html in commonmark thanks to rehype-raw
* extract processor code
* refactor processor code
* extract format + unit test
* try to refactor processor
* try to refactor processor
* adjust md page
* do not apply rehype-raw when format is mdx
* fix lint issue
2023-05-12 11:36:42 +02:00
Sébastien Lorber
bf913aea2a
feat: upgrade to MDX v2 ( #8288 )
...
Co-authored-by: Armano <armano2@users.noreply.github.com>
2023-04-21 19:48:57 +02:00
Joshua Chen
e8a07633ba
chore: upgrade dependencies ( #8534 )
...
* chore: upgrade dependencies
* FIxes
* Bump again
2023-01-10 13:23:16 -05:00
Sébastien Lorber
59fac0b1d1
docs: document siteConfig.markdown + better mdx-loader retrocompat ( #8419 )
2022-12-07 17:59:51 +01:00
Balthasar Hofer
b016686c22
fix(mdx-loader): support nested admonitions ( #8303 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
closes undefined
2022-11-23 21:19:29 +01:00
Sam Wall
9c92a79d23
feat: support mermaid code blocks in Markdown ( #7490 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-10-14 18:07:20 +02:00
Joshua Chen
275f509d13
chore: upgrade dependencies ( #7993 )
...
* chore: upgrade dependencies
* Fix lint
* Bump more
* Fix lint
2022-09-08 01:31:53 -04:00
Sébastien Lorber
6f63ffe0a3
refactor(theme): split admonitions, make swizzle easier, better retrocompatibility ( #7945 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-09-07 17:49:44 +02:00
Sébastien Lorber
2a6f116a85
chore: bad remark-admonition readme link ( #7939 )
2022-08-11 10:38:35 +02:00
Joshua Chen
e12a2efaeb
docs: normalize capitalization ( #7619 )
2022-06-15 13:04:33 +08:00
Joshua Chen
7869e74fd7
refactor(pwa): simplify registerSW code, fix ESLint errors ( #7579 )
2022-06-07 21:42:17 +08:00
Alexey Pyltsyn
5746c58f41
refactor: handle all admonitions via JSX component ( #7152 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-06-03 14:26:33 +02:00
Joshua Chen
9023b7740c
refactor: remove sub-eslintrc, fix more lint errors ( #7530 )
2022-05-30 14:49:51 +08:00
Joshua Chen
f443e992b9
refactor: mark toc in loaded MDX as non-optional ( #7524 )
2022-05-29 22:36:41 +08:00
Joshua Chen
e2e40b8f5f
test: fix some type errors in test files ( #7486 )
2022-05-25 11:46:10 +08:00
Joshua Chen
bf1513a3e3
refactor: fix a lot of errors in type-aware linting ( #7477 )
2022-05-24 15:40:26 +08:00
Joshua Chen
3666a2ede5
refactor: remove a lot of implicit anys ( #7468 )
2022-05-23 15:40:53 +08:00
Joshua Chen
89b0fff128
refactor: reduce number of leaked anys ( #7465 )
2022-05-23 00:30:32 +08:00
Joshua Chen
0838884f67
chore: enable import/order rule ( #7418 )
2022-05-14 23:39:50 +08:00
Joshua Chen
d3788bd126
fix(mdx-loader): use React.Fragment as fragment factory ( #7392 )
2022-05-11 11:02:41 +08:00
Joshua Chen
b49ae67521
refactor(types): move non-core, non-public types out of the types package ( #7293 )
2022-05-03 17:15:48 +08:00
Joshua Chen
7f06857e46
fix: fix a lot of declaration semantic errors ( #7194 )
2022-04-17 23:44:20 +08:00