w-html2docx 1.0.2 → 1.0.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * w-html2docx v1.0.2
2
+ * w-html2docx v1.0.3
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
@@ -246,7 +246,7 @@ export default WHtml2docx
246
246
  <br class="clear">
247
247
 
248
248
  <footer>
249
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Nov 16 2025 20:26:20 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
249
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Mon Nov 17 2025 12:33:48 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
250
250
  </footer>
251
251
 
252
252
  <script>prettyPrint();</script>
package/docs/global.html CHANGED
@@ -593,7 +593,7 @@
593
593
  <br class="clear">
594
594
 
595
595
  <footer>
596
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Nov 16 2025 20:26:20 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
596
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Mon Nov 17 2025 12:33:48 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
597
597
  </footer>
598
598
 
599
599
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -71,7 +71,7 @@
71
71
  <br class="clear">
72
72
 
73
73
  <footer>
74
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Nov 16 2025 20:26:20 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
74
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Mon Nov 17 2025 12:33:48 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
75
75
  </footer>
76
76
 
77
77
  <script>prettyPrint();</script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-html2docx",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "dist/w-html2docx.umd.js",
5
5
  "dependencies": {
6
6
  "lodash-es": "^4.17.21",
package/test/ztmp.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
7
7
  <meta name="renderer" content="webkit" />
8
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
9
- <title>report</title>
9
+ <title>html</title>
10
10
 
11
11
  <!-- highlight -->
12
12
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.min.css">
@@ -122,7 +122,7 @@
122
122
  .md li {
123
123
  display: list-item;
124
124
  /* margin: 0.4rem 0; */
125
- /* padding: 0; */
125
+ padding: 0;
126
126
  }
127
127
 
128
128
  .md blockquote {
@@ -293,8 +293,11 @@
293
293
  <li style="margin:7px 0;">加強 AI 模型訓練與部署</li>
294
294
  <li style="margin:7px 0;">系統導入自動化測試(CI/CD)</li>
295
295
  </ol>
296
+
296
297
  <hr>
298
+
297
299
  <h2>七、附錄</h2>
300
+
298
301
  <h3>7.1 引用區塊層級</h3>
299
302
  <blockquote>
300
303
  <p>第1層引用</p>
@@ -303,6 +306,29 @@
303
306
  </blockquote>
304
307
  <hr>
305
308
 
309
+ <h3>7.2 換行元素BR(用於再轉Docx)</h3>
310
+
311
+ <!-- 若使用md轉html會自動移除display:none;, html須隱藏得用height:0; overflow:hidden;, br才能於docx生效 -->
312
+
313
+ <p>文段1</p>
314
+
315
+ <div style="height:0; overflow:hidden;">
316
+ <br>
317
+ </div>
318
+
319
+ <p>文段2</p>
320
+
321
+ <div style="height:0; overflow:hidden;">
322
+ <br>
323
+ </div>
324
+ <div style="height:0; overflow:hidden;">
325
+ <br>
326
+ </div>
327
+
328
+ <p>文段3</p>
329
+
330
+ <hr>
331
+
306
332
  <h2>註腳</h2>
307
333
  <section class="footnotes" data-footnotes>
308
334
  <h2 id="footnote-label" class="sr-only" style="height:0px; line-height:0px; min-height:0px; overflow:hidden;">Footnotes</h2>
Binary file