@@ -62,13 +62,6 @@
let messages = state.messagesFor(path)
let description = schema.description
- if (description) {
- try {
- description = nmd(description)
- } catch (e) {
- console.error("Could not convert description to markdown", { description })
- }
- }
@@ -82,7 +75,7 @@
{/if}
{#if description}
-
+
{/if}
{#each $messages as message}
diff --git a/src/UI/Studio/SchemaBasedField.svelte b/src/UI/Studio/SchemaBasedField.svelte
index ff9c56395..2102b6761 100644
--- a/src/UI/Studio/SchemaBasedField.svelte
+++ b/src/UI/Studio/SchemaBasedField.svelte
@@ -3,7 +3,6 @@
import type { ConfigMeta } from "./configMeta"
import TagRenderingEditable from "../Popup/TagRendering/TagRenderingEditable.svelte"
import TagRenderingConfig from "../../Models/ThemeConfig/TagRenderingConfig"
- import nmd from "nano-markdown"
import type { QuestionableTagRenderingConfigJson } from "../../Models/ThemeConfig/Json/QuestionableTagRenderingConfigJson"
import EditLayerState from "./EditLayerState"
import { onDestroy } from "svelte"
@@ -68,11 +67,12 @@
type = type.substring(0, type.length - 2)
}
- const configJson: QuestionableTagRenderingConfigJson = {
+ const configJson: QuestionableTagRenderingConfigJson & {questionHintIsMd: boolean} = {
id: path.join("_"),
render: rendervalue,
question: schema.hints.question,
- questionHint: nmd(schema.description),
+ questionHint: schema.description,
+ questionHintIsMd: true,
freeform:
schema.type === "boolean"
? undefined
diff --git a/src/UI/Studio/SchemaBasedMultiType.svelte b/src/UI/Studio/SchemaBasedMultiType.svelte
index 2df43cbc3..d23f936f7 100644
--- a/src/UI/Studio/SchemaBasedMultiType.svelte
+++ b/src/UI/Studio/SchemaBasedMultiType.svelte
@@ -8,8 +8,6 @@
import { onDestroy } from "svelte"
import SchemaBasedInput from "./SchemaBasedInput.svelte"
import type { JsonSchemaType } from "./jsonSchema"
- // @ts-ignore
- import nmd from "nano-markdown"
import ShowConversionMessage from "./ShowConversionMessage.svelte"
/**
diff --git a/src/UI/Walkthrough/Walkthrough.svelte b/src/UI/Walkthrough/Walkthrough.svelte
index d3fda9f12..33d862045 100644
--- a/src/UI/Walkthrough/Walkthrough.svelte
+++ b/src/UI/Walkthrough/Walkthrough.svelte
@@ -1,8 +1,8 @@