create-rspress 1.4.1 → 1.5.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rspress",
3
- "version": "1.4.1",
3
+ "version": "1.5.1",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -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: