@alemonjs/qq-bot 2.1.0-alpha.20 → 2.1.0-alpha.21
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/lib/sends.js +11 -11
- package/package.json +1 -1
package/lib/sends.js
CHANGED
|
@@ -149,17 +149,17 @@ const createArkList = (value) => {
|
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
151
|
const map = {
|
|
152
|
-
title:
|
|
153
|
-
subtitle:
|
|
154
|
-
text:
|
|
155
|
-
bold:
|
|
156
|
-
divider: () => '\n————————\n',
|
|
157
|
-
italic:
|
|
158
|
-
italicStar:
|
|
159
|
-
strikethrough:
|
|
160
|
-
blockquote:
|
|
161
|
-
newline: () => '\n',
|
|
162
|
-
link:
|
|
152
|
+
'MD.title': value => `# ${value}`,
|
|
153
|
+
'MD.subtitle': value => `## ${value}`,
|
|
154
|
+
'MD.text': value => `${value} `,
|
|
155
|
+
'MD.bold': value => `**${value}** `,
|
|
156
|
+
'MD.divider': () => '\n————————\n',
|
|
157
|
+
'MD.italic': value => `_${value}_ `,
|
|
158
|
+
'MD.italicStar': value => `*${value}* `,
|
|
159
|
+
'MD.strikethrough': value => `~~${value}~~ `,
|
|
160
|
+
'MD.blockquote': value => `\n> ${value}`,
|
|
161
|
+
'MD.newline': () => '\n',
|
|
162
|
+
'MD.link': value => `[🔗${value.text}](${value.url}) `
|
|
163
163
|
};
|
|
164
164
|
const createMarkdownText = (data) => {
|
|
165
165
|
const content = data
|