Skip to content

v2.0.0-beta.33

Pre-release
Pre-release
Compare
Choose a tag to compare
@SoonIter SoonIter released this 17 Sep 10:02
· 38 commits to main since this release
c3efbd4

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>

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 🐞

  • fix(theme/style): some components should not be included in rp-doc by @SoonIter in #2602

Document 📖

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