File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: onElementDataChange
3
3
type : server
4
4
source_element :
5
5
type : element
6
- description : The source of this any element that supports element data.
6
+ description : The source of this event is the [element](/reference/Element) whose element data changed .
7
7
description : This event is triggered *after* an element's [data](/wiki/Element_data
8
8
" Element data" ) entry is changed. Such changes can be made on the client or the
9
9
server using [setElementData](/wiki/SetElementData "SetElementData").
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { getCollection } from 'astro:content';
4
4
import fs from " fs" ;
5
5
import path from " path" ;
6
6
import { Code } from ' @astrojs/starlight/components' ;
7
- import { getSeeAlsoLinksForItem } from ' @src/utils/general' ;
7
+ import { renderInlineMarkdown , getSeeAlsoLinksForItem } from ' @src/utils/general' ;
8
8
9
9
10
10
import NoteBox from ' @src/components/NoteBox.astro' ;
@@ -95,7 +95,9 @@ if (Array.isArray(event.data.notes) && event.data.notes.length > 0) {
95
95
<Code code = { parametersCode } lang = " lua" />
96
96
{ eventParameters .map ((param : any ) => (
97
97
<ul >
98
- <li set :html = { " <strong>" + param .name + " </strong>: " + param .description } />
98
+ <li
99
+ set :html = { ` <strong>${param .name }</strong>: ${renderInlineMarkdown (param .description )} ` }
100
+ />
99
101
</ul >
100
102
))}
101
103
</>
@@ -104,7 +106,8 @@ if (Array.isArray(event.data.notes) && event.data.notes.length > 0) {
104
106
)}
105
107
106
108
<h4 >Source</h4 >
107
- <p set:html ={ " <strong>" + event .data .source_element .type + " </strong>: " + event .data .source_element .description } />
109
+ <p set:html ={ " <strong>" + event .data .source_element .type + " </strong>: "
110
+ + renderInlineMarkdown (event .data .source_element .description )} />
108
111
109
112
<!-- Canceling (optional) -->
110
113
{ event .data .canceling && (
You can’t perform that action at this time.
0 commit comments