Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Container syntax inside lists or other components are not rendered #1513

Open
i-richardwang opened this issue Oct 22, 2024 · 2 comments
Labels
🐞 bug Something isn't working

Comments

@i-richardwang
Copy link

Version

System:
OS: macOS 15.0.1
CPU: (10) arm64 Apple M1 Pro
Memory: 213.81 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Browsers:
Chrome: 130.0.6723.58
npmPackages:
rspress: ^1.34.1 => 1.34.1

Details

在列表内或其他 components 内的 callout 未能渲染

Image

Reproduce link

None

Reproduce Steps

## In Lists

1. Title1

    :::tip
    This is a tip.
    :::

3. Title2

## In Steps

import { Steps } from '@theme';

<Steps>
### Title1

:::tip
This is a tip.
:::

### Title2
</Steps>
@i-richardwang i-richardwang added the 🐞 bug Something isn't working label Oct 22, 2024
@Timeless0911 Timeless0911 changed the title [Bug]: 在列表内或其他 components 内的 callout 未能渲染 [Bug]: Container syntax inside lists or other components are not rendered Oct 22, 2024
@Timeless0911
Copy link
Collaborator

These should all be parsing issues of container syntax.

For lists

The extra indentation is not well recognized, you should use container syntax without indentations.

## In Lists

1. Title1

:::tip
This is a tip.
:::

3. Title2

For other components

The container syntax is not supported to be used in components now.

@Timeless0911
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants