MaxKB icon indicating copy to clipboard operation
MaxKB copied to clipboard

feat: 支持导出单次对话的全部提问记录为Markdown文件或HTML文件

Open YoungZM339 opened this issue 1 year ago • 2 comments

What this PR does / why we need it?

与 #471 有关,但未实现PDF导出

Summary of your change

image image image 使用marked和file-saver实现Markdown文件和HTML文件导出。 在实现PDF导出时,发现中文和特殊字符在导出PDF时会出现乱码问题。如果使用html2canvas后再导出PDF,则会导致文本无法复制。对于面向程序开发等场景的知识库来说,无法复制文本/代码是一个非常糟糕的问题,因此决定暂时不放出导出PDF的方法。

Please indicate you've done the following:

  • [ Y ] Made sure tests are passing and test coverage is added if needed.
  • [ Y ] Made sure commit message follow the rule of Conventional Commits specification.
  • [ Y ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

YoungZM339 avatar May 21 '24 22:05 YoungZM339

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

f2c-ci-robot[bot] avatar May 21 '24 22:05 f2c-ci-robot[bot]

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

f2c-ci-robot[bot] avatar May 21 '24 22:05 f2c-ci-robot[bot]

ui/src/views/chat/pc/index.vue 文件冲突,无法merge

shaohuzhang1 avatar May 22 '24 07:05 shaohuzhang1

收到,我晚上处理一下冲突再重启pr

YoungZM339 avatar May 22 '24 07:05 YoungZM339

冲突已解决,已merge

shaohuzhang1 avatar May 22 '24 07:05 shaohuzhang1