Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize exported Markdown style, add H2 #1138

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhoukuncheng
Copy link

@zhoukuncheng zhoukuncheng commented Mar 29, 2024

Avoid poor Markdown rendering, because GPT often outputs content with an H3 title, which looks awkward when following a user message.

I recently began taking extensive notes from ChatHub to Obsidian, so this PR will benefit people who rely on ChatHub for note-taking.

最近靠 ChatHub 总结笔记,导出的 md 格式,author 是正文,而 GPT 输出包含了多级标题,就很奇怪。
修改后: author 作为 H2

before:
image

after:

image

@zhoukuncheng zhoukuncheng changed the title optimize exported Markdown style, treat user message as H2 Optimize exported Markdown style, treat user message as H2 Mar 29, 2024
@wong2
Copy link
Collaborator

wong2 commented Mar 30, 2024

感觉这样改也不是很合理,user的输入和bot的输出应该是同级的

@zhoukuncheng
Copy link
Author

如果平级的话,得考虑 bot 长串文字的处理,可能加辅助文本会好一点

@zhoukuncheng zhoukuncheng changed the title Optimize exported Markdown style, treat user message as H2 Optimize exported Markdown style, add H2 Mar 30, 2024
@zhoukuncheng
Copy link
Author

已修改为平级,author 不管是 user 还是 bot,都视为 h2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants