13 lines
440 B
Scheme
13 lines
440 B
Scheme
; Injections for embedded languages in Storybook
|
|
|
|
; Treat prose block content as Markdown
|
|
((prose_content) @injection.content
|
|
(#set! injection.language "markdown"))
|
|
|
|
; Alternative: If you want to be more specific and only inject for certain tags:
|
|
; ((prose_block
|
|
; tag: (identifier) @tag
|
|
; content: (_) @injection.content)
|
|
; (#match? @tag "^(description|backstory|narrative|details|notes)$")
|
|
; (#set! injection.language "markdown"))
|