Skip to content

Commit a978631

Browse files
committed
Fix Prettier
1 parent 544d761 commit a978631

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/gatsby-remark-japanese-fix/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const toString = require('mdast-util-to-string');
22
const visit = require('unist-util-visit');
33

4-
const hasJapaneseCharacter = str => {
4+
const hasJapaneseCharacter = (str) => {
55
// Detects katakana, hiragana, iteration marks, and CJK unified ideographs
66
return /[\u30a0-\u30ff\u3040-\u309f\u3005-\u3006\u4e00-\u9fea]/.test(str);
77
};
@@ -13,7 +13,7 @@ const hasJapaneseCharacter = str => {
1313
*/
1414

1515
module.exports = ({markdownAST}, options) => {
16-
visit(markdownAST, 'emphasis', node => {
16+
visit(markdownAST, 'emphasis', (node) => {
1717
const nodeStr = toString(node);
1818
if (hasJapaneseCharacter(nodeStr)) {
1919
// Patch AST

src/css/ja-fix.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.em-ja {
22
font-weight: bolder;
33
font-style: normal;
4-
}
4+
}

0 commit comments

Comments
 (0)