mirror of
https://github.com/ikatyang/emoji-cheat-sheet.git
synced 2024-11-22 18:33:50 +01:00
Update markdown format
fix incorrect empty field
This commit is contained in:
parent
e8d4ee96fa
commit
570451caad
@ -25,7 +25,7 @@ request.get(url, (error, response, body) => {
|
|||||||
const catalog = $(catalogElement).text();
|
const catalog = $(catalogElement).text();
|
||||||
$html.find(`#emoji-${catalog.toLowerCase()} li .name`).each((_, emojiElement) => {
|
$html.find(`#emoji-${catalog.toLowerCase()} li .name`).each((_, emojiElement) => {
|
||||||
const emoji = $(emojiElement).text();
|
const emoji = $(emojiElement).text();
|
||||||
emojis.push(emoji);
|
emojis.push(`:${emoji}:`);
|
||||||
});
|
});
|
||||||
emojiTable[catalog] = emojis;
|
emojiTable[catalog] = emojis;
|
||||||
});
|
});
|
||||||
|
@ -47,7 +47,7 @@ module.exports = class Markdown {
|
|||||||
rowEmojis.push('');
|
rowEmojis.push('');
|
||||||
table += format(`
|
table += format(`
|
||||||
|
|
||||||
| [top](#table-of-contents) |${rowEmojis.map((emoji) => ` :${emoji}: | \`:${emoji}:\` `).join(' | ')}|
|
| [top](#table-of-contents) |${rowEmojis.map((emoji) => emoji ? ` ${emoji} | \`${emoji}\` ` : ' | ').join(' | ')}|
|
||||||
|
|
||||||
`) + '\n';
|
`) + '\n';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user