在 Google 文档中导入和导出 Markdown
Import and Export Markdown in Google Docs

原始链接: https://workspaceupdates.googleblog.com/2024/07/import-and-export-markdown-in-google-docs.html

此更新使技术内容创建者能够在 Google Docs 和其他 Markdown 支持工具之间无缝工作。 开发人员现在可以在 Docs 中创建、编辑和协作处理软件文档,并轻松将其工作导出到 GitHub 或 Jupyter Notebook 等其他平台。 这消除了手动复制粘贴代码片段和格式化详细信息的需要。 技术作家还可以利用这种集成,因为他们可以将现有的 Docs 内容转换为 Markdown 格式,从而更轻松地跨多个渠道共享和维护代码示例。 所有 Google Workspace 客户、个人订阅者和个人帐户持有者均可使用这项新功能,无需任何额外设置。 只需在 Google 文档首选项中启用 Markdown 设置,即可开始直接在文档中使用 Markdown 语法。 您可以通过将 Markdown 内容粘贴到文档中、将现有文档内容转换为 Markdown、下载文件的 Markdown 版本或在 Google 文档中打开 Markdown 文件来访问这些功能。 有关更多信息,请访问[帮助中心](https://support.google.com/docs)。

用户想知道 Google 协作平台是否像 Google Colab 一样支持 Markdown 输入单元。 不幸的是,不可以,因为 Google 协作平台只允许纯 HTML。 不过,用户可以使用 Pandoc 等工具将 Markdown 文档转换为 Google 协作平台,该工具可以转换包括 Markdown 在内的各种文件格式。 此外,该用户还询问如何使用 MyST Markdown YAML 标题从 Markdown 文档创建 Google 协作平台页面。 这可以通过构建一个静态站点生成器来实现,该生成器利用 GatsbyJS 或 Hugo 等工具将 Markdown 文件转换为可部署的网站。 此外,用户提到 NotebookLM 可以生成 Python、LaTeX 和 Markdown 文档。 他们想知道如何在没有容器或 Inspect 元素的 Chromebook 上执行 Markdown 和 Git diff。 建议使用在线比较工具,例如 Unified Diff 或 Diffs.io,它们支持 Markdown 并提供类似于 git diff 命令的功能。 在使用 Markdown 散文对 Jupyter Notebooks 自动评分方面,用户对 OtterGrader 很感兴趣,这是一个开源项目,它为使用 Jupyter Notebooks 的编程作业提供自动评分。 要使用不同的 Markdown 文件类型(MyStMarkdown、RST、IPYNB)构建书籍,用户可以使用 Jupyter Book 或 mkdocs 等工具。 最后,用户在 Google 文档中编写技术文档时对渲染代码片段的限制和自动更正问题表示沮丧。 为了克服这些挑战,用户寻求可行的 Markdown 解决方案,最适合在 Google 生态系统中使用。 顺便说一句,该用户提到 Google 大量使用 Google Docs 来编写设计文档。 他们建议在系统建成后将设计细节移至内部文档页面。 这些页面提供版本控制的降价文件,进入门槛较低。 设计文档可能会随着时间的推移而演变,但通常在初始实施完成后被冻结,因为在性能评估和晋升期间被用作工程师熟练程度的衡量标准。
相关文章

原文
  • Convert Markdown to Docs content on paste 
  • Copy Docs content as Markdown 
  • Export a Doc as Markdown (from File > Download
  • Import Markdown as a Doc (from File > Open or "Open with Google Docs" from Drive) 

Who’s impacted 

End users and developers

Why you’d use it 

This update is particularly useful for technical content writers as they can now convert Docs content to/from Markdown. For example, developers can collaborate on software documentation in Docs and then export it as Markdown for use in other Markdown supporting tools. 

Getting started 

  • Admins: There is no admin control for this feature. 
  • End users: The import and export options are ON by default. The “Copy as Markdown” and “Paste from “Markdown” options will be OFF by default and can be enabled in Docs by going to Tools > Preferences > Enable Markdown. Visit the Help Center to learn more about using Markdown in Google Docs, Slides, & Drawings.

Rollout pace

Availability 

  • Available to all Google Workspace customers, Workspace Individual Subscribers, and users with personal Google accounts 

Resources

联系我们 contact @ memedata.com