Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Feb 22, 2023
1 parent fad80da commit 734cd24
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions docs/guide/initialize.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,36 @@ group:
title: 基础
order: 0
order: 0
mobile: false
---

```tsx | inline
export default () => <input type="text" placeholder="test 1" />;
```

---

```tsx | inline
export default () => <textarea placeholder="test 2" />;
```

---

```tsx
export default () => <input type="text" placeholder="test 3" />;
```

```tsx
export default () => (
<div
contentEditable
style={{ width: '300px', height: '50px', backgroundColor: 'cyan' }}
>
可以输入内容哦
</div>
);
```

# 初始化

## 环境准备
Expand Down
2 changes: 1 addition & 1 deletion src/loaders/markdown/transformer/remarkEmbed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function remarkEmbed(
vFile.data.embeds = [];

visit<Root, 'html'>(tree, 'html', (node, ancestors) => {
if (node.value.startsWith(EMBED_OPEN_TAG)) {
if (node.value.startsWith(EMBED_OPEN_TAG) && false) {
let relatedNodeCount = 1;
const parent = ancestors[ancestors.length - 1] as Paragraph;
const grandParent = ancestors[ancestors.length - 2] as Root;
Expand Down

0 comments on commit 734cd24

Please sign in to comment.