> ## Documentation Index
> Fetch the complete documentation index at: https://craft-support.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Bear

> 将 Bear 的笔记以 Markdown 或 TextBundle 格式导入 Craft。

Bear 提供 **Markdown (.md)** 和 **TextBundle (.textbundle)** 两种导出选项。Craft 支持导入这两种格式，可确保你的内容和附件顺利迁移。

## 从 Bear 导出笔记

<Steps>
  <Step>
    **打开 Bear** 并选择要导出的笔记。
  </Step>

  <Step>
    **选择导出格式**

    将其导出为 **Markdown (.md)** 或 **TextBundle (.textbundle)** 文件。

    * 如果以 **TextBundle** 导出，你可以直接将文件导入 Craft，无需额外调整。
    * 如果以 **Markdown (.md)** 导出，请按照下面的步骤操作，以确保 PDF、图片和其他资源能正确导入。
  </Step>
</Steps>

## 从 Bear 导入带有附件的 Markdown 文件

从 Bear 导出 Markdown 文件时，有一些格式细节需要注意，以确保 PDF、图片和其他附件能正确导入。

### 为无缝导入调整 Markdown 文件

1. **无需删除嵌入代码**

   从 **Craft version 3.1.0** 起，你无需再从 Markdown 文件中删除以下嵌入代码：

   ```html theme={null}
   <!-- {"embed":"true"} -->
   ```

2. **将每个附件单独成段**

   请确保每个 PDF、图片或其他附件各自占一行，而不是与段落中的文字混在同一行。你可以在 **Bear** 中通过在每个附件前后按 **Enter** 来实现。

   在 **Bear** 中的示例：

   ```markdown theme={null}
   This is some text before the image.

   ![Image](image.png)

   This is some text after the image.

   ![PDF](document.pdf)

   ```

<Info title="提示">
  导出后，请在文本编辑器中打开 Markdown 文件，检查每个资源引用是否单独占一行。这可以确保导入 Craft 时文件正确显示。
</Info>

## 导入到 Craft

<Steps>
  <Step>
    **打开 Craft** 并转到 **All Documents** 或 **Organize** 视图。
  </Step>

  <Step>
    **点击导入图标**，位于左侧侧边栏底部。
  </Step>

  <Step>
    **选择格式**（Markdown 或 TextBundle），然后选择导出的文件。
  </Step>
</Steps>
