EtherTW / Terms

翻譯區塊鏈相關專有名詞
https://ethertw.github.io/Terms/
MIT License
12 stars 4 forks source link

feat: markdown link #33

Closed antoncoding closed 5 months ago

antoncoding commented 6 months ago

TLDR

Parse markdown link,使用 html tag 取代

實作困難

本來想做 1 & 3,但是 1 比想像中難做,於是先做 3

  1. 目前的做法是先將 markdown parse 成 html file. 這之後如果要算字數決定是否 shorten text 的時候會遇到一些問題(例如要判斷 <a /> 不算在字數裡面),不能直接用 length 判斷。
  2. static file 難以做到 toggle 兩個不同的 content ,目前嘗試了一些做法都有問題,理想上希望可以完全靠 js & css 解決