在导出Notion文章时添加了错误的转义符号
AndyBlocker opened this issue · comments
你当前使用的Elog版本
0.14.1
Elog配置文件
module.exports = {
write: {
platform: 'notion',
notion: {
token: process.env.NOTION_TOKEN,
databaseId: process.env.NOTION_DATABASE_ID,
filter: {property: 'status', select: {equals: '已发布'}},
}
},
deploy: {
platform: 'local',
local: {
outputDir: './src/content/blog',
filename: 'title',
format: 'matter-markdown',
frontMatter: {
enable : true,
timeFormat: true,
include: ['title', 'pubDatetime', 'description', 'tags'],
},
formatExt: 'elog.format.js'
}
},
image: {
enable: true,
platform: 'local',
local: {
outputDir: './public/images',
prefixKey: '/images',
pathFollowDoc: false,
}
}
}
发生了什么?
在导出https://polydactyl-kidney-018.notion.site/SpikingJelly-An-open-source-machine-learning-infrastructure-platform-for-spike-based-intelligence-57439434875e4df29c1a330598f18976
这个页面的文章时,elog在大部分公式中错误地添加了反斜杠(如大部分公式中的[]、_前,删除了公式中的\换行或修改为\0)。
Elog错误日志
No response
附加信息
No response
- 公式可能需要博客平台相对应的插件支持,一部分博客会无法识别导致报错,可以检查一下你的博客平台
2.notion to md 为第三方库, 我需要复现并检查一下看是否需要更新这个库的版本。
目前还是建议先从 1 中寻找支持,elog 本身是没有对 md 做处理的,我这边尝试复现解决一下。
方便贴一下出问题的那段公式的 md 文档内容吗?
- 公式可能需要博客平台相对应的插件支持,一部分博客会无法识别导致报错,可以检查一下你的博客平台
2.notion to md 为第三方库, 我需要复现并检查一下看是否需要更新这个库的版本。目前还是建议先从 1 中寻找支持,elog 本身是没有对 md 做处理的,我这边尝试复现解决一下。
方便贴一下出问题的那段公式的 md 文档内容吗?
平台本身渲染是没有问题的,在使用elog导出其他文章的时候也没有遇到这个问题;导出的文章在上面的链接中,直接复制得到的内容如下:
file.md
另外,notion2md的插件对多段quote会处理成
> 引用段落1
引用段落2
而不是
> 引用段落1
> 引用段落2
此外对于一些加粗也不会正确添加加粗**内容**后的空格,导致其他平台渲染的不正确
**错误加粗:**内容
**正确加粗:** 内容
是需要通过formatter处理吗😂
你用的什么博客平台
你用的什么博客平台
Astro,所以实际上只用到了导出markdown的功能;
加粗的问题在之前用halo的时候也遇到过
我也用的Astro
网址:https://blog.1874.cool
Github:https://github.com/LetTTGACO/blog.1874.cool
我这两天排查一下