Fixed raw text and lisp
This commit is contained in:
parent
ed2fd9f45e
commit
0d61c7662a
3620
pnpm-lock.yaml
3620
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -13,9 +13,7 @@
|
|||
{@html htmlContent}
|
||||
</div>
|
||||
{:else if isPlainText}
|
||||
<div class="whitespace-pre-line h-full">
|
||||
{decompressed}
|
||||
</div>
|
||||
<pre class="h-full">{decompressed}</pre>
|
||||
{:else}
|
||||
<pre class="h-full"><code>{@html htmlContent}</code></pre>
|
||||
{/if}
|
||||
|
|
|
@ -44,12 +44,16 @@
|
|||
|
||||
$: {
|
||||
if (editor) {
|
||||
languages = CodeMirror.modeInfo
|
||||
.map((e: any) => ({
|
||||
text: e.name,
|
||||
value: shorten(e.name),
|
||||
languages = (CodeMirror.modeInfo as unknown[])
|
||||
.map((e: any) => {
|
||||
let name = e.name
|
||||
if (name === 'Common Lisp') name = 'Lisp'
|
||||
return {
|
||||
text: name,
|
||||
value: shorten(name),
|
||||
data: { mime: e.mime, mode: e.mode },
|
||||
}))
|
||||
}
|
||||
})
|
||||
.filter((l: any) => l.value !== 'gflm') // Remove github flavored markdown, redundant with markdown
|
||||
|
||||
selectedLanguage =
|
||||
|
|
Loading…
Reference in New Issue
Block a user