Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tkngaejcpi/remark-replace-chinese-dash
a remark plugin that replaces double `—` (U+2014 EM DASH) into `⸺` (U+2E3A TWO-EM DASH)
https://github.com/tkngaejcpi/remark-replace-chinese-dash
chinese markdown remark remark-plugin typography unified
Last synced: about 1 month ago
JSON representation
a remark plugin that replaces double `—` (U+2014 EM DASH) into `⸺` (U+2E3A TWO-EM DASH)
- Host: GitHub
- URL: https://github.com/tkngaejcpi/remark-replace-chinese-dash
- Owner: tkngaejcpi
- License: apache-2.0
- Created: 2024-09-09T06:36:55.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-09T07:39:11.000Z (2 months ago)
- Last Synced: 2024-09-27T03:06:32.935Z (about 2 months ago)
- Topics: chinese, markdown, remark, remark-plugin, typography, unified
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# remark-replace-chinese-dash
## 簡介
這是一個將 `——`(兩個連續的 U+2014 EM DASH)替換成 `⸺`(U+2E3A TWO-EM DASH)的 [remark](https://github.com/remarkjs/remark) 插件。
前者作為大部分中文輸入法對破折號的默認輸出,
在邏輯上是兩條橫線,
要按兩次刪除才能完全刪掉,
更甚者有些地方顯示上也是兩條斷開的橫線,
而後者則不會出現這一情況。事實上,
除了這一區別,
不同的「破折號」在顯示上也不太一樣,
更詳細的介紹可以參考[《不離不棄的破折號》](https://www.thetype.com/2019/03/14918)這篇文章。