Skip to content

[bug] markdown 和 HTML 混编渲染不正确 #93

@jaywhj

Description

@jaywhj

你好,这段代码渲染不正确,效果没渲染出来,不知道编辑器是否支持混编的方式?在其他好多编辑器里都是可以正常渲染的,本质上,markdown 就是 HTML,如果是原生HTML,也是可以正常显示的:


### 3. 多列布局

使用 `<div>` 多层嵌套,然后再设置其 CSS 属性。

<style>
.container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 2vw;
    margin-bottom: var(--content-padding-bottom);
}
</style>
<div class="container">
<div>

- 第1列
    - Bullet
- Bullet
- Bullet

</div>
<div>

1. 第2列
    1. List
2. List
3. List

</div>
<div>
<img src="https://www.w3cschool.cn/attachments/image/20170526/1495798408306247.jpg" />
</div>

</div>

正常应该是渲染成这样的:

截屏2025-01-14 23 38 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions