Merged
Conversation
Owner
|
你好,感谢贡献,请再补充一个测试用例,简单一点的话,在 test 目录下新增一个 test-convert.json, 再新增一个 test-convert.md,再在 test.py 的 YoudaoNoteCovert 里面加一条就行。 |
Owner
|
代码风格检查没有通过,请再修改一下 |
Contributor
Author
sorry我没看出来是哪个文件的风格检查没过。。 |
Owner
|
black 不没过。我先合并了 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
现在的脚本对于笔记里单行内富文本内容有丢失的问题。


例如原笔记内容为:
导出后的结果为:
原因为脚本中对于单行文本转换只取了第一个下标的内容,而富文本的每个部分是列表的形式,遍历即可修复。

修复后的导出结果为: