v2.0.0-beta.33
Pre-release
Pre-release
Breaking Changes🚨
Make raw HTML in md styled
related PR: #2600
Rspress is now driven by CSS for style, ref: https://github.com/web-infra-dev/rspress/blob/main/packages/theme-default/src/styles/doc.scss
So you can:
- Use original html tag like
<ul><li>this is a line</li></ul>
, they will now be styled the same as* this is a line
- do not need to use Rspress's built-in
const { h1: H1 } = getCustomMdxComponents()
to annotate styles - For components that do not wish to be polluted by Rspress prose CSS,
.rp-not-doc
is all you needed
## List
- list item 1 <------ styled
- list item 2
<ul>
<li>list item 1</li> <------ styled
<li>list item 2</li>
</ul>
<div className="rp-not-doc"> <----- not styled
<ul>
<li>list item 1</li>
<li>list item 2</li>
</ul>
</div>
<ul className="rp-not-doc> <----- not styled
<li>list item 1</li>
<li>list item 2</li>
</ul>
- Even if Rspress supports it, it's still better not to use raw HTML: https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md033.md
What's Changed
New Features 🎉
- feat(theme-default): Make the tab component usable in layouts other than DocLayout by @Karibash in #2589
- feat(theme/style)!: keep the html style be consistent with markdown syntax and
.rp-not-doc
escape hatch (#2579) by @SoonIter in #2600
Bug Fixes 🐞
Document 📖
- docs(ui): upgrade Rspress UI part by @SoonIter in #2591
- docs(ui): upgrade shiki vars by @SoonIter in #2598
Other Changes
- chore(deps): update all patch dependencies by @renovate[bot] in #2575
- chore(deps): upgrade nx to upgrade axios and form-data by @SoonIter in #2592
- chore(deps): update all patch dependencies by @renovate[bot] in #2593
- chore(deps): update dependency memfs to ^4.39.0 by @renovate[bot] in #2595
- chore(deps): update dependency @rslib/core to v0.13.2 by @renovate[bot] in #2594
- chore(deps): update dependency @mdx-js/react to v3 by @renovate[bot] in #2558
- test(e2e): inline-markdown add "link" example by @SoonIter in #2601
- refactor(theme-default)!: remove unused low-frequency components LinkCard and Card by @SoonIter in #2603
- chore(theme/style): nav group and add word-break: keep-all to navItem (#2568) by @SoonIter in #2604
- Release v2.0.0-beta.33 by @SoonIter in #2605
Full Changelog: v2.0.0-beta.32...v2.0.0-beta.33