Releases
v0.7.4
What's Changed
- Improved cache use to avoid download images if the content was not changed. by @huacnlee in https://github.com/longbridgeapp/feishu-pages/pull/22
Full Changelog: https://github.com/longbridgeapp/feishu-pages/compare/v0.7.3...v0.7.4
v0.7.3
What's Changed
- Fix to disable Artboard image download cache to makesure it will update when the source is updated. by @huacnlee in https://github.com/longbridgeapp/feishu-pages/pull/21
Full Changelog: https://github.com/longbridgeapp/feishu-pages/compare/v0.7.2...v0.7.3
v0.7.2
What's Changed
- Fix Artboard image URL replace. by @huacnlee in https://github.com/longbridgeapp/feishu-pages/pull/20
Full Changelog: https://github.com/longbridgeapp/feishu-pages/compare/v0.7.1...v0.7.2
v0.7.1
What's Changed
- Add
-board
suffix to whiteboard image filename. by @huacnlee in https://github.com/longbridgeapp/feishu-pages/pull/19
Full Changelog: https://github.com/longbridgeapp/feishu-pages/compare/v0.7.0...v0.7.1
v0.7.0
What's Changed
- 新增对画板的读取 by @RaBBBBBIT in https://github.com/longbridgeapp/feishu-pages/pull/17
- demo: 导出演示
NOTE: 请注意调整飞书开发中账号,新增
board:whiteboard:node:read
权限才可以正确下载画板图片。
New Contributors
- @RaBBBBBIT made their first contribution in https://github.com/longbridgeapp/feishu-pages/pull/17
Full Changelog: https://github.com/longbridgeapp/feishu-pages/compare/v0.6.11...v0.7.0
v0.6.11
- Use HTML tag for text mark style. Fix #10
- Fix to ensure to remove heading prefix newline. #11
- Fix special indent level list render in a paragraph. #12
v0.6.10
- Optimize imageDownload check, if cache file is 0 size, download again.
v0.6.9
- 修复某些情况下图片附件下载可能会是 0 字节的问题,修正 streaming download 的细节。
v0.6.8
What's Changed
修复 Markdown 的某些 HTML 输出没有按照父节点保持相同缩进的问题(避免 VitePress 这类严格检查的工具编译不过)。
例如:
Before
mdx- 这里是一个 List Item 这里是 List 下的段落 <div class="callout"> <p>这里是 Callout 内容</p> </div> - 这里是 List Item 2
After
mdx- 这里是一个 List Item 这里是 List 下的段落 <div class="callout"> <p>这里是 Callout 内容</p> </div> - 这里是 List Item 2
改进 Callout 组件的 HTML 生成结构,将 Emoji 放到外面,避免内容的 Markdown 渲染可能会被 Emoji 打乱的问题。
新的 Callout 结构:
html<div class="callout callout-bg-1 callout-border-1"> <div class="callout-emoji">😀</div> <p>这里是 Callout 的主题文字</p> </div>
v0.6.6
What's Changed
改成 Inline Style 的导出细节,合并连续的加粗、倾斜等文字格式,避免 Markdown 渲染无法完全还原的问题。
- Before:
**He****llo**
Markdown 渲染后会变成 He****llo - After: 将生成
**Hello**
, 渲染后会是这样 Hello
- Before:
v0.6.5
What's Changed
- 改进
Column
导出,支持列的原始比例,将会以flex
布局方式给出,每一列有宽度百分比属性(默认采用 Tailwind CSS 的配置)。
v0.6.4
What's Changed
- 修正一些复杂的 HTML 场景是,子文档的链接替换可能存在的替换异常。
v0.6.2
What's Changed
- 改进 Table 的生成,如原始表格包含单元格合并或列宽度,将生成 HTML Table 以支持单元格合并,简单的表格依然保持 Markdown Table。
- 修复
ROOT_NODE_TOKEN
的细节,现在会把ROOT_NODE_TOKEN
对应的那篇文档一起导出。 - 修复
dist/docs
目录可能没创建而导致的错误。
例如这个表格结果
v0.6.1
What's Changed
- 改进目录导出阶段的效率(大约 1 - 4x 提升),避免请求没有子节点的目录接口。
- 新增
SKIP_ASSETS=1
环境变量,用于导出调试,当SKIP_ASSETS=1
将不会导出任何的图片和附件。
v0.6.0
What's Changed
- 改进图片、附件的导出路径,统一放到根目录的
assets
文件夹,这样有利于 CDN 统一上传,或者统一给这个文件夹设置浏览器缓存。 - 新增
URL_STYLE
环境变量参数,支持original
和nested
值,默认为:nested
。original
- 采用飞书那种一层的 URL 结构,这样你写文档可以不用写slug
之类的,比较简单。nested
- 采用层级的 URL 结构,如:/foo/bar/dar
。
关于 URL_STYLE
参数
如果你期望可以简单导出文档,不需要搞太多事情,你也不需要做国际化支持,你可以采用 URL_STYLE=original
,这样所有生成的 URL 将会是类似: /KMZnwe9qPiLYMOkzzeMcQQcXnkK
的结构。
如果你想生成更专业的 URL 结构,你可以采用 URL_STYLE=nested
,这也是 feishu-pages 的默认结构,具体效果参见 官网文档。
关于 assets
文件夹建议
飞书的所有附件,每一次上传均是唯一的文件名,所以在部署文档的时候,你可以将 /assets
文件夹上传到 CDN 或为这个文件夹设置较长(例如 1 年)的浏览器缓存时间,以减少文件重复下载。
更多内容请阅读文档:
https://longbridgeapp.github.io/feishu-pages/zh-CN/url-style
v0.5.13
What's Changed
- Improve StringBuffer to support write a buffer.
- Add
DEBUG=1
env to print memory info. - Improve file download avoid crash when file download file or 404.
v0.5.12
What's Changed
- Use streaming to download asset files, to fix large file out of memory issue.
v0.5.11
What's Changed
- Store the doc content into tmp file to avoid out of memory issue.
v0.5.10
What's Changed
- Fix Markdown output HTML to use XHTML, e.g.:
<br>
into<br/>
. - Now will Escape
<
,>
into<
,>
for PlainText, to avoid Feishu paragraph text has<
or>
character, will break the HTML structure.
v0.5.8
What's Changed
- Fix Markdown Frontmatter generate for better compatibility, avoid error when have some special chars.
v0.5.7
What’s Changed
- Fix for better internal links and images url replace.
v0.5.6
What's Changed
- 增加导出过滤,如文档标题包含
[hide]
或[隐藏]
关键词,当前文档以及子文档均不会导出。
v0.5.5
What's Changed
- 增加将文档正文的换成(放到
.cache/nodes
内),如文档未更新采用 cache 以提升导出速度。
v0.5.4
What's Changed
- 修复在处理多级目录结构时, hide: true 没有被移除的 bug by @ihavecoke in https://github.com/longbridgeapp/feishu-pages/pull/6
New Contributors
- @ihavecoke made their first contribution in https://github.com/longbridgeapp/feishu-pages/pull/6
Full Changelog: https://github.com/longbridgeapp/feishu-pages/compare/v0.5.2...v0.5.4
v0.5.3
What's Changed
- feishu-docx: Improve PageMeta to support CodeBlock inside a nested blocks.
- Fix to don't export the hide docs.
- feishu-docx: Fix breaks in a HTML output.
- Rename env
URL_PREFIX
intoBASE_URL
, and make sure it ends with/
. - Cleanup the
docs.json
, remove unused keys.
v0.4.8
What's Changed
- Fix relative doc link in HTML.
v0.4.7
What's Changed
- Add
URL_PREFIX
to custom the relative URL prefix, default:/
.
v0.4.6
What's Changed
- Fix download file failed error #5, if failed, ignore that file.
v0.4.5
What's Changed
- Add
FEISHU_ENDPOINT
ENV variable for custom Feishu API endpoint. #4
v0.4.4
What's Changed
- Fix Emoji list missed the ❤ for Callout.
- Fix Callout and Grid inner for output as HTML to support rich formats.
v0.4.3
What's Changed
- Fix to support slug use number.
- Add to support iframe export.
Full Changelog: https://github.com/longbridgeapp/feishu-pages/compare/v0.4.2...v0.4.3
v0.4.2
What's Changed
- example: Improve VitePress config for support of multiple languages.
- feishu-docx: Fix table export to support mutliple
\n
.
New Contributors
- @bayun2 made their first contribution in https://github.com/longbridgeapp/feishu-pages/pull/1
Full Changelog: https://github.com/longbridgeapp/feishu-pages/compare/v0.4.1...v0.4.2
v0.4.1
- fix fileTokens miss bug.
Full Changelog: https://github.com/longbridgeapp/feishu-pages/compare/v0.4.0...v0.4.1
v0.4.0
What's New
- feishu-docx: Add to support the first codeblock as the page meta.
- feishu-docx: Support JSON doc meta.
- feishu-docx: Fix
Mention Doc
support; - feishu-pages: Add to support generate files with custom slug.
Full Changelog: https://github.com/longbridgeapp/feishu-pages/compare/v0.3.3...v0.4.0
v0.3.0
- feishu-docx: Add to support Callout & Grid.
- feishu-docx: Fix image width, height attribute to src-width, src-height.