Comments (3)
{ inlineCode: true }
好像不是控制这个特性的,是控制「是否对行内代码块内的中英文混排进行格式化」。
from remark-pangu.
@lostpg 是的,{ inlineCode: true }
是处理 inline code 内部的格式:
中文abc中文
→ 中文 abc 中文
{ inlineCode: true }
好像不是控制这个特性的,是控制「是否对行内代码块内的中英文混排进行格式化」。
我理解大多数情况下 inline code 前后是否加空格和中英文没特别大关系,一般是全部都加或全部都不加。如果是输出到 HTML 的话,甚至可以直接通过 CSS padding margin 等来控制前后间距。
from remark-pangu.
用在格式化 Markdown 本身的话,好的格式 inline code 前后的 text 应该是要加上空格。不过要做到这个好像仅仅对每一个结点内部进行格式化不顶用,需要结合前后结点的类型和文本首尾的内容来判断处理了。
from remark-pangu.
Related Issues (12)
- How can I use it in Atom HOT 1
- 如果是链接,会有问题。 HOT 1
- Release new version ? HOT 1
- markdown 头部格式的问题 HOT 2
- 关闭/开启某些类型排版 HOT 1
- The automated release is failing 🚨
- package.json does not include al necessary files HOT 5
- 中文链接处理&HTML HOT 3
- 是否应该默认禁止格式化行内代码块的内容? HOT 2
- 公式块处理有问题 HOT 1
- 有一个比较小白的问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remark-pangu.