Support pasting more HTML elements
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- html, javascript, markdown
- 领域
- frontend
调研方向
首先检查 html-to-markdown spike 以及链接的 Google Doc 测试用例。将现有的 paste-markdown 行为与列出的 HTML 元素进行比较,并为标题、代码、强调、列表和引用定义覆盖范围;完成的标准是这些剪贴板输入能够生成预期的 Markdown,同时不会使现有特殊情况发生回归。
由索引模型根据 Issue 内容生成。
描述
This was originally an issue by @imjohnbo in github/special-projects, a private repository:
Summary
Today, content is pasted into GitHub comments (issues, PRs, discussions, etc) as plaintext, except for a few special cases managed by
@github/paste-markdown.It's a laborious process to add formatting and links of the copy source back into the paste target. For example:
- Copying/pasting part of a GitHub comment into a GitHub comment box – maybe in a different issue – in order to reply to it
- Copying/pasting part of a Google Doc shared with a customer into a GitHub comment box in order to add context to it
- ...
This issue would build on https://github.com/github/special-projects/issues/679 and investigate adding Slack-like paste functionality for the features GitHub developers care about, including:
name html markdown headings <h1>,<h2>...#,##, etc.inline code <code>` code`code block <pre><code>``` code```bold <strong>**bold** italics <em>*italics* ordered lists <ol><li>1. item unordered lists <ul><li>- item task lists ? - [x] completed item quotes blockquote> a long quote Example
This Google Doc:
![]()
is pasted as:
Big Heading Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eleifend consectetur nisl, vel vestibulum odio mattis sit amet. Integer vehicula rhoncus augue, eu congue magna porttitor eget. Medium Heading Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eleifend consectetur nisl, vel vestibulum odio mattis sit amet. Integer vehicula rhoncus augue, eu congue magna porttitor eget. Small Heading Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eleifend consectetur nisl, vel vestibulum odio mattis sit amet. Integer vehicula rhoncus augue, eu congue magna porttitor eget.when I would like it to be:
# Big Heading Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eleifend consectetur nisl, vel vestibulum odio mattis sit amet. Integer vehicula rhoncus augue, eu congue magna porttitor eget. ## Medium Heading Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eleifend consectetur nisl, vel vestibulum odio mattis sit amet. Integer vehicula rhoncus augue, eu congue magna porttitor eget. ### Small Heading Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eleifend consectetur nisl, vel vestibulum odio mattis sit amet. Integer vehicula rhoncus augue, eu congue magna porttitor eget.Spike
I started a spike over the weekend which allows for this:
Other
- Pasteboard Viewer helps understand what's in the macOS clipboard
- Here is a Google Doc with some test cases for convenience ❇️
- 主要语言
- JavaScript
- 星标
- 234
- 派生
- 47
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 5
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/paste-markdown 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
github/paste-markdown#118 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
github/paste-markdown#107 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
github/paste-markdown#104 ·
-
难度 3/5 1-2 天 新手友好度 35/100
github/paste-markdown#100 ·
-
难度 3/5 1-2 天 新手友好度 48/100
github/paste-markdown#96 · 1 条评论 ·
查看 github/paste-markdown 的全部 Issue
相似的 Issue
-
bug confirmed issue
难度 2/5 1-3 小时 新手友好度 75/100
open-webui/open-webui#30750 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
Mend: dependency security vulnerability untriaged
难度 2/5 1-3 小时 新手友好度 70/100
