@t8/docsgen 0.2.10 → 0.2.11
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/dist/bin.js +1 -1
- package/package.json +1 -1
- package/src/bin/setContent.ts +3 -1
package/dist/bin.js
CHANGED
|
@@ -689,7 +689,7 @@ function getDefaultCodeStyleContent(cssRoot) {
|
|
|
689
689
|
`.trim();
|
|
690
690
|
}
|
|
691
691
|
function tweakTypography(s = "") {
|
|
692
|
-
return s.replace(/\b(for|in|on|at|with|a|an|the)\s+/gi, "$1\xA0");
|
|
692
|
+
return s.replace(/\b(for|in|on|at|with|a|an|the)\s+/gi, "$1\xA0").replace(/\b(React)\s+(apps?)\b/gi, "$1\xA0$2");
|
|
693
693
|
}
|
|
694
694
|
async function setContent(ctx) {
|
|
695
695
|
let {
|
package/package.json
CHANGED
package/src/bin/setContent.ts
CHANGED
|
@@ -28,7 +28,9 @@ function getDefaultCodeStyleContent(cssRoot: string) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
function tweakTypography(s = "") {
|
|
31
|
-
return s
|
|
31
|
+
return s
|
|
32
|
+
.replace(/\b(for|in|on|at|with|a|an|the)\s+/gi, "$1\xa0")
|
|
33
|
+
.replace(/\b(React)\s+(apps?)\b/gi, "$1\xa0$2");
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
export async function setContent(ctx: Context) {
|