diff --git a/docs/index.md b/docs/index.md
index 923fea9..2777324 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -14,4 +14,4 @@ If you need help or have questions:
- Join the discussion on [Discord](https://discord.gg/b8ctQBaaax)
-asdfds
\ No newline at end of file
+__asdfds__
\ No newline at end of file
diff --git a/index.js b/index.js
index d83c19b..90e9465 100644
--- a/index.js
+++ b/index.js
@@ -275,7 +275,7 @@ async function loadDocument(path) {
processedContent = `# ${titleContent}\n\n${processedContent}`;
- const finalContent = processedContent.replace(/!\[\[(.*?)\]\]/g, (match, filename) => {
+ let finalContent = processedContent.replace(/!\[\[(.*?)\]\]/g, (match, filename) => {
const mediaPath = `${basePath}/images/${filename}`;
if (filename.toLowerCase().endsWith('.mp4')) {
@@ -288,6 +288,9 @@ async function loadDocument(path) {
return `\n\n\n`;
});
+ // Add Discord-style underline support: __text__ -> text
+ finalContent = finalContent.replace(/__(.*?)__/g, '$1');
+
document.querySelector('.title-text .page-title').textContent = titleContent;
documentContent.className = 'markdown-content';