6174 / 6174/pagedown

XHTML error

未關閉 適合新手
#78 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
auto-migrated Priority-Medium Type-Defect
主要語言
JavaScript
星號
0
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

```
What steps will reproduce the problem?
1. Rename demo.html demo.xhtml
2. In the dialog, click the insert images icon
3. Use the French locale file. Rinse and repeat.

What is the expected output? What do you see instead?

Expected to see image dialogue. Saw a greyed out page. Page was unresponsive
until reloaded.

What version of the product are you using? On what operating system?

Accessed from https://code.google.com/p/pagedown/ August 14, 2014 on Ubuntu
Linux 14.04

Please provide any additional information below.

The following two files need to be changed to support xhtml: Markdown.Editor.js
and Markdown.local.fr.js

############## Diff for Markdown.Editor.js : ##############

37c37
< image: "Image Ctrl+G",

---
> image: "Image Ctrl+G",
39c39
< imagedialog: "

Insert
Image

http://example.com/images/diagram.jpg \"optional
title\"

Need free image hosting?

",

---
> imagedialog: "

Insert
Image

http://example.com/images/diagram.jpg \"optional title\"

Need free image hosting?

",
48c48
< hr: "Horizontal Rule
Ctrl+R",

---
> hr: "Horizontal Rule


Ctrl+R",
2239c2239
< })();
\ No newline at end of file

---
> })();

############## Diff for Markdown.local.fr.js ##############

16c16
< linkdialog: "

Insérer un
hyperlien

http://example.com/ \"titre optionnel\"

",

---
> linkdialog: "

Insérer un
hyperlien

https://exemple.com/ \"titre optionnel\"

",
26c26
< imagedialog: "

Insérer une
image

http://example.com/images/diagram.jpg \"titre
optionnel\"

Vous chercher un hébergement d'image grauit ?

",

---
> imagedialog: "

Insérer une
image

https://exemple.com/exemple.png \"titre optionnel\"

Cherchez-vous un hébergeur d'images gratuit ?

",
29c29
< ulist: "Liste à point
    Ctrl+U",

    ---
    > ulist: "Liste à puce

      Ctrl+U",
      41c41
      < help: "Aide sur Markdown"

      ---
      > help: "Apropos Markdown ..."
      43c43
      < })();
      \ No newline at end of file

      ---
      > })();

      ```

      Original issue reported on code.google.com by `jim.holgate` on 14 Aug 2014 at 9:54

      Attachments:
      - [PageDown diffs for xhtml & French corrections.zip](https://storage.googleapis.com/google-code-attachments/pagedown/issue-78/comment-0/PageDown diffs for xhtml & French corrections.zip)

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

此 issue 提供了 Markdown.Editor.js 和 Markdown.local.fr.js 的精確 diff。先在 repository 中找出這些檔案。變更包括更新 HTML 標籤以符合 XHTML(新增結尾斜線),以及修正法文 locale 字串。將 demo.html 重新命名為 demo.xhtml,並使用法文 locale 進行測試,以確保圖片對話框能正確顯示。確認這些變更不會破壞現有功能。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
html
領域
frontend, internationalization
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
75/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。