prep: replace $$props.class with props
This commit is contained in:
1 parent
3ca72662ca
commit
0718c8e0c6
69 files changed
+383
-214
No files matched your search
@@ -98,13 +98,17 @@
|
||||
export let noStyle: boolean = false
|
||||
|
||||
$: tokens = marked.lexer(source)
|
||||
|
||||
export let style: string = ''
|
||||
let clazz: string = ''
|
||||
export { clazz as class }
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="{noStyle
|
||||
? ''
|
||||
: 'break-words flex flex-col gap-2 leading-[1.5]'} {$$props.class}"
|
||||
style={$$props.style}
|
||||
: 'break-words flex flex-col gap-2 leading-[1.5]'} {clazz}"
|
||||
{style}
|
||||
>
|
||||
<SvelteMarkdown
|
||||
bind:source={tokens}
|
||||
|
||||
Reference in new issue
Block a user