fix read-only viewer

This commit is contained in:
evilchili 2026-01-17 15:53:29 -08:00
parent 3d66587678
commit 2d07a5c5f6

View File

@ -126,9 +126,13 @@ class Froghat {
} }
getMarkdown() { getMarkdown() {
if (!this.cachedMarkdown) {
this.cachedMarkdown = this.element.textContent;
}
return this.cachedMarkdown; return this.cachedMarkdown;
} }
view() { view() {
/* /*
* Convert the wiki read-only mode and display the current HTML. * Convert the wiki read-only mode and display the current HTML.