Support pasting more HTML elements
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- html, javascript, markdown
- 領域
- frontend
調査の方向性
まず html-to-markdown のスパイクと、リンクされている 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時間
- マージ済み PR(30日)
- 5
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/paste-markdown のほかの issue
-
Pasting a link whose text/html label is a shortened form of its URL plants a `[` inside the URL オープン
難易度 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
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
docToolchain/docToolchain#1705 ·
-
Timezone select lists one option per character; duplicate "Failed" reason; shared tracker popover id オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
nightscout/nocturne#1414 ·
-
bug v2
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
modelcontextprotocol/inspector#2458 · コメント 1 件 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
carbon-design-system/ibm-products#9907 ·
