create-rspress 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/docs/guide/index.md +13 -0
package/package.json
CHANGED
|
@@ -158,6 +158,19 @@ export default {
|
|
|
158
158
|
};
|
|
159
159
|
```
|
|
160
160
|
|
|
161
|
+
### Wrap Code
|
|
162
|
+
|
|
163
|
+
If you want to wrap long code line by default, you can enable the `defaultWrapCode` option in the config file:
|
|
164
|
+
|
|
165
|
+
```ts title="rspress.config.ts"
|
|
166
|
+
export default {
|
|
167
|
+
// ...
|
|
168
|
+
markdown: {
|
|
169
|
+
defaultWrapCode: true,
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
```
|
|
173
|
+
|
|
161
174
|
### Line Highlighting
|
|
162
175
|
|
|
163
176
|
You can also apply line highlighting and code block title at the same time, for example:
|