Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use pangu to add padding between chinese and english #413

Merged
merged 1 commit into from
Apr 22, 2023

Conversation

birdgg
Copy link
Contributor

@birdgg birdgg commented Apr 22, 2023

WHAT

🤖 Generated by Copilot at aee2e8c

This pull request adds a new plugin, remarkPangu, to the src/markdown directory. The plugin improves the readability of markdown content by inserting spaces between Chinese and English text.

🤖 Generated by Copilot at aee2e8c

Oh, we're the coders of the sea, and we write our markdown free
But we like to keep it tidy, so we use remarkPangu
On the count of three, we insert a space, between the languages we embrace
And we sing this shanty proudly, as we use remarkPangu

WHY

There is no space in Chinese and English typesetting now。

So I copied and modified remark-pangu

Screenshot 2023-04-23 at 00 08 17

Bug
Currently, Pangu tends to add padding to link text as well. vincentbel/remark-pangu#21

HOW

🤖 Generated by Copilot at aee2e8c

  • Import and apply remarkPangu plugin to add spaces between Chinese and English characters in markdown content (link, link)
  • Create src/markdown/remark-pangu.ts module to export remarkPangu plugin (link)

CLAIM REWARDS

@vercel
Copy link

vercel bot commented Apr 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
xlog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2023 4:23pm

@DIYgod
Copy link
Member

DIYgod commented Apr 22, 2023

Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants