Copied table from Excel is pasted as raw HTML
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- frontend
調査の方向性
まず、添付された example_table.xlsx と提供された手順を使い、web UI 上の Chrome と Safari で Excel テーブルの貼り付けを再現します。この問題に関係するブラウザのクリップボード処理と貼り付け処理を追跡します。Chrome が生の Excel HTML を露出させるのではなく、Safari と同じ Markdown 形式のテーブルを生成すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
To Reproduce
Steps to reproduce the behavior:
- Copy table from example_table.xlsx
-
Open Google Chrome and navigated to Web UI on GHES 3.8 instance (This issue is reproduced in GitHub.com as well)
-
Paste it on a issue comment. It is pasted as raw HTML.
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 15">
<link id=Main-File rel=Main-File
href="file:////Users/hikanema/Library/Group%20Containers/UBF8T346G9.Office/TemporaryItems/msohtmlclip/clip.htm">
<link rel=File-List
href="file:////Users/hikanema/Library/Group%20Containers/UBF8T346G9.Office/TemporaryItems/msohtmlclip/clip_filelist.xml">
<style>
<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
@page
{margin:.75in .7in .75in .7in;
mso-header-margin:.3in;
mso-footer-margin:.3in;}
.font5
{color:windowtext;
font-size:6.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:游ゴシック;
mso-generic-font-family:auto;
mso-font-charset:128;}
tr
{mso-height-source:auto;
mso-ruby-visibility:none;}
col
{mso-width-source:auto;
mso-ruby-visibility:none;}
br
{mso-data-placement:same-cell;}
td
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:black;
font-size:12.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:游ゴシック;
mso-generic-font-family:auto;
mso-font-charset:128;
mso-number-format:General;
text-align:general;
vertical-align:middle;
border:none;
mso-background-source:auto;
mso-pattern:auto;
mso-protection:locked visible;
white-space:nowrap;
mso-rotate:0;}
ruby
{ruby-align:left;}
rt
{color:windowtext;
font-size:6.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:游ゴシック;
mso-generic-font-family:auto;
mso-font-charset:128;
mso-char-type:katakana;
display:none;}
-->
</style>
</head>
<body link="#0563C1" vlink="#954F72">
a | b
-- | --
1 | 2
</body>
</html>
Expected behavior
When I pasted the same excel table in Safari, it was formatted as Markdown style.
a | b
-- | --
1 | 2
Screenshots
Copy and paste table from Excel results in both raw HTML and Markdown. It depends on browser
Raw HTML in Chrome
Markdown in Safari
- 主要言語
- 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
-
bug customer-eng Durable Agents Inngest status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
optimization optimization:agents-md-curator
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
githubnext/gh-aw-cao#13475 ·
-
[BUG]: "Clear All" in Settings doesn't clear the saved analysis, old data comes back after reload オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
AOSSIE-Org/OrgExplorer#253 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
oxc-project/oxc#26944 ·
-
ai-observability bug team/ai-observability
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100