@qnroa/qtype 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -1
- package/CHANGELOG.zh.md +17 -1
- package/dist/view/assets/{index-nAVje4CH.js → index-CBeDsCqy.js} +1 -1
- package/dist/view/assets/{index-CeSHvqfR.js → index-CihkBUpt.js} +23 -23
- package/dist/view/assets/{index-TskEzyRz.js → index-iihqZVF5.js} +2 -2
- package/dist/view/assets/{index-_1m9NuFe.css → index-pFij5fBp.css} +1 -1
- package/dist/view/index.html +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -13,7 +13,25 @@ can land in any minor bump (`0.x.0`).
|
|
|
13
13
|
|
|
14
14
|
## [Unreleased]
|
|
15
15
|
|
|
16
|
-
## [0.1.
|
|
16
|
+
## [0.1.3] — 2026-08-28
|
|
17
|
+
|
|
18
|
+
Adds markdown link support to the display-side renderer. Typing
|
|
19
|
+
targets are untouched — links only render in descriptive slots
|
|
20
|
+
(`## Q` prompts, article / snippet bodies, gloss), never in `## A`
|
|
21
|
+
or any other slot the engine reads as target text.
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
- **Standard `[label](url)` markdown links.** External URLs (`http(s)://`,
|
|
25
|
+
`//`) open in a new tab with `rel="noopener noreferrer"`; relative
|
|
26
|
+
URLs stay in-place. Styled via `.qt-md-link` — underlined, accent-
|
|
27
|
+
coloured, no extra layout impact.
|
|
28
|
+
- Image regex (``) runs before the link regex so `!` prefix
|
|
29
|
+
wins; a negative lookbehind on the link regex prevents cross-match.
|
|
30
|
+
|
|
31
|
+
### Notes
|
|
32
|
+
- The engine (`TypingInput`) is not touched. Card answers still compare
|
|
33
|
+
character-by-character. Only the *rendered preview* on the Q side
|
|
34
|
+
gets the link.
|
|
17
35
|
|
|
18
36
|
Fixes iOS Safari (and some Android IMEs) where soft-keyboard keys
|
|
19
37
|
(Space, Enter, Backspace) silently did nothing. The engine received
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -12,7 +12,23 @@ English: [CHANGELOG.md](https://www.npmjs.com/package/@qnroa/qtype?activeTab=cod
|
|
|
12
12
|
|
|
13
13
|
## [Unreleased]
|
|
14
14
|
|
|
15
|
-
## [0.1.
|
|
15
|
+
## [0.1.3] — 2026-08-28
|
|
16
|
+
|
|
17
|
+
在显示侧渲染器加了 markdown 链接支持。打字目标不动 —— 链接只在
|
|
18
|
+
描述性 slot(`## Q`、article/snippet 正文、gloss)里生效,`## A`
|
|
19
|
+
以及其他被引擎当作打字目标的 slot 从不走这条路径。
|
|
20
|
+
|
|
21
|
+
### 新增
|
|
22
|
+
- **标准 `[label](url)` markdown 链接**。外部 URL(`http(s)://`、`//`
|
|
23
|
+
开头)在新 tab 打开,带 `rel="noopener noreferrer"`;相对 URL 在
|
|
24
|
+
当前页面。样式在 `.qt-md-link` —— 下划线、accent 色,不占额外
|
|
25
|
+
布局空间。
|
|
26
|
+
- 图片正则 `` 先跑,`!` 前缀优先;link 正则加了负向后瞻
|
|
27
|
+
防止串匹配。
|
|
28
|
+
|
|
29
|
+
### 说明
|
|
30
|
+
- 打字引擎 `TypingInput` 未改。答案卡片仍按字符逐位比对。**只有 Q
|
|
31
|
+
的渲染预览**会看到超链接。
|
|
16
32
|
|
|
17
33
|
修复 iOS Safari(以及部分 Android 输入法)上软键盘的 Space / Enter /
|
|
18
34
|
Backspace 键"没反应"的问题。这些键在 composition 结束外按下时
|