Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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)這篇文章。