-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do auto-unwrapping of multi-byte chars only for Chinese locale
Fixes #300.
- Loading branch information
1 parent
762b7cc
commit 782741f
Showing
7 changed files
with
135 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ tags = ["filling"] | |
draft = false | ||
+++ | ||
|
||
abc def ghi 这是一个测试文本 | ||
abc def ghi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ent/posts/filling-not-preserved-for-chinese-characters--preserve-filling-off.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
+++ | ||
title = "Filling automatically not preserved for Chinese characters (preserve filling off)" | ||
description = "Ensure that even when auto-unwrapping is enabled, no space is kept between the unwrapped multi-byte characters if the locale is manually set or auto-detected as Chinese." | ||
tags = ["filling", "chinese", "locale"] | ||
draft = false | ||
+++ | ||
|
||
abc def ghi 这是一个测试文本 | ||
|
||
[Reference](https://emacs-china.org/t/ox-hugo-auto-fill-mode-markdown/9547/5) |
16 changes: 16 additions & 0 deletions
16
...tent/posts/filling-not-preserved-for-chinese-characters--preserve-filling-on.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
+++ | ||
title = "Filling automatically not preserved for Chinese characters (preserve filling on)" | ||
description = """ | ||
Ensure that multi-byte characters are force-unwrapped if the locale is | ||
manually set or auto-detected as Chinese. | ||
""" | ||
tags = ["filling", "chinese", "locale"] | ||
draft = false | ||
+++ | ||
|
||
abc | ||
def | ||
ghi | ||
这是一个测试文本 | ||
|
||
[Reference](https://emacs-china.org/t/ox-hugo-auto-fill-mode-markdown/9547/5) |