@@ -24,7 +24,7 @@ type Context = {
2424type TransformLink = (
2525 href : string ,
2626 children : ElementContent [ ] ,
27- title ?: string ,
27+ title ?: string
2828) => string ;
2929type TransformImage = ( src : string , alt : string , title ?: string ) => string ;
3030type TransformLinkTargetType =
@@ -37,7 +37,7 @@ type TransformLinkTargetType =
3737type TransformLinkTarget = (
3838 href : string ,
3939 children : ElementContent [ ] ,
40- title ?: string ,
40+ title ?: string
4141) => TransformLinkTargetType | undefined ;
4242
4343type SolidMarkdownNames = keyof JSX . IntrinsicElements ;
@@ -116,7 +116,7 @@ const tableElements = new Set(["table", "thead", "tbody", "tfoot", "tr"]);
116116
117117export function childrenToSolid (
118118 context : Context ,
119- node : Element | Root ,
119+ node : Element | Root
120120) : JSX . Element [ ] {
121121 const children : JSX . Element [ ] = [ ] ;
122122 let childIndex = - 1 ;
@@ -156,7 +156,7 @@ function toSolid(
156156 context : Context ,
157157 node : Element ,
158158 index : number ,
159- parent : Element | Root ,
159+ parent : Element | Root
160160) : JSX . Element {
161161 const options = context . options ;
162162 const parentSchema = context . schema ;
@@ -224,7 +224,7 @@ function toSolid(
224224 ? options . linkTarget (
225225 String ( properties . href || "" ) ,
226226 node . children ,
227- typeof properties . title === "string" ? properties . title : undefined ,
227+ typeof properties . title === "string" ? properties . title : undefined
228228 )
229229 : options . linkTarget ;
230230 }
@@ -233,7 +233,7 @@ function toSolid(
233233 properties . href = options . transformLinkUri (
234234 String ( properties . href || "" ) ,
235235 node . children ,
236- typeof properties . title === "string" ? properties . title : undefined ,
236+ typeof properties . title === "string" ? properties . title : undefined
237237 ) ;
238238 }
239239
@@ -262,7 +262,7 @@ function toSolid(
262262 properties . src = options . transformImageUri (
263263 String ( properties . src || "" ) ,
264264 String ( properties . alt || "" ) ,
265- typeof properties . title === "string" ? properties . title : undefined ,
265+ typeof properties . title === "string" ? properties . title : undefined
266266 ) ;
267267 }
268268
@@ -338,7 +338,7 @@ function getInputElement(node: Element | Root): Element | null {
338338
339339function getElementsBeforeCount (
340340 parent : Element | Root ,
341- node ?: Element ,
341+ node ?: Element
342342) : number {
343343 let index = - 1 ;
344344 let count = 0 ;
@@ -355,7 +355,7 @@ function addProperty(
355355 props : Record < string , unknown > ,
356356 prop : string ,
357357 value : unknown ,
358- ctx : Context ,
358+ ctx : Context
359359) {
360360 const info = find ( ctx . schema , prop ) ;
361361 let result = value ;
@@ -414,7 +414,7 @@ function flattenPosition(
414414 | {
415415 start : { line : null ; column : null ; offset : null } ;
416416 end : { line : null ; column : null ; offset : null } ;
417- } ,
417+ }
418418) : string {
419419 return [
420420 pos . start . line ,
0 commit comments