@alemonjs/bubble 2.1.0-alpha.7 → 2.1.0-alpha.9
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/send.js +4 -4
- package/package.json +1 -1
package/lib/send.js
CHANGED
|
@@ -102,7 +102,7 @@ const sendToRoom = async (client, param, val) => {
|
|
|
102
102
|
contentMd += line.value;
|
|
103
103
|
}
|
|
104
104
|
else if (line.type === 'MD.blockquote') {
|
|
105
|
-
contentMd +=
|
|
105
|
+
contentMd += `\n> ${line.value}`;
|
|
106
106
|
}
|
|
107
107
|
else if (line.type === 'MD.bold') {
|
|
108
108
|
contentMd += `**${line.value}**`;
|
|
@@ -111,10 +111,10 @@ const sendToRoom = async (client, param, val) => {
|
|
|
111
111
|
contentMd += `*${line.value}*`;
|
|
112
112
|
}
|
|
113
113
|
else if (line.type === 'MD.divider') {
|
|
114
|
-
contentMd += '---\n';
|
|
114
|
+
contentMd += '\n---\n';
|
|
115
115
|
}
|
|
116
116
|
else if (line.type === 'MD.image') {
|
|
117
|
-
contentMd +=
|
|
117
|
+
contentMd += `\n\n`;
|
|
118
118
|
}
|
|
119
119
|
else if (line.type === 'MD.link') {
|
|
120
120
|
contentMd += `[${line.value}](${line.value})`;
|
|
@@ -133,7 +133,7 @@ const sendToRoom = async (client, param, val) => {
|
|
|
133
133
|
}
|
|
134
134
|
else if (line.type === 'MD.code') {
|
|
135
135
|
const language = line?.options?.language || '';
|
|
136
|
-
contentMd +=
|
|
136
|
+
contentMd += `\n\`\`\`${language}\n${line.value}\n\`\`\`\n`;
|
|
137
137
|
}
|
|
138
138
|
else {
|
|
139
139
|
const value = line['value'] || '';
|