tonic + npm: node-han-css

node v6.17.1
endpointsharetweet
const Han = require('node-han-css') const style = '<link href="//cdn.bootcss.com/Han/3.3.0/han.min.css" rel="stylesheet">' const html = `<article lang="zh-Hant-TW" style="background: #fff; padding: 2em"> <p>「漢字標準格式」是一套支援各種印刷效果的Sass + JavaScript排版框架,包含<!-- --><u>相鄰</u><u>文字裝飾線</u><u>跳脫</u>、<ruby class="rightangle"><rb>漢</rb><rb>字</rb><rb>標</rb><rb>音</rb><rtc class="zhuyin"><rt>ㄏㄢˋ</rt><rt>ㄗˋ</rt><rt>ㄅㄧㄠ</rt><rt>ㄧㄣ</rt></rtc><rtc class="pinyin"><rt rbspan="2">hànzì</rt><rt rbspan="2">biāoyīn</rt></rtc></ruby>、<em>着重號</em>、<!-- -->標點符號修正、<abbr title="黑、宋、楷、仿宋">中文四大印刷體</abbr>、漢字-西文mixed間隙、「標點『擠壓』與『懸掛』」、章節邊界調整……</p> </article>` const han = await (new Han()).ready() han.render(style + html)
Created from: https://tonicdev.com/npm/node-han-css
Loading…

no comments

    sign in to comment