Skip to content

Commit

Permalink
Resource type description markdown support (#4960)
Browse files Browse the repository at this point in the history
  • Loading branch information
hcourdent authored Dec 20, 2024
1 parent 6308bf0 commit 6143efc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/routes/(root)/(logged)/resources/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import autosize from '$lib/autosize'
import EditableSchemaWrapper from '$lib/components/schema/EditableSchemaWrapper.svelte'
import ResourceEditorDrawer from '$lib/components/ResourceEditorDrawer.svelte'
import GfmMarkdown from '$lib/components/GfmMarkdown.svelte'
type ResourceW = ListableResource & { canWrite: boolean; marked?: string }
type ResourceTypeW = ResourceType & { canWrite: boolean }
Expand Down Expand Up @@ -437,7 +438,7 @@
<div>
<h1 class="mb-8 mt-4"><IconedResourceType name={resourceTypeViewerObj.rt} formatExtension={resourceTypeViewerObj.formatExtension} /></h1>
<div class="py-2 box prose mb-8 text-secondary">
{resourceTypeViewerObj.description ?? ''}
<GfmMarkdown md={resourceTypeViewerObj.description ?? ''} />
</div>
{#if resourceTypeViewerObj.formatExtension}
<Alert type="info" title="Plain text file resource (.{resourceTypeViewerObj.formatExtension})">
Expand Down

0 comments on commit 6143efc

Please sign in to comment.