You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
263 B

from typing import Callable
from panflute import Element, Span, convert_text
def basicTextCommand(s: str) -> Callable:
content = convert_text(s)[0].content
def f(e: Element) -> Element:
element = Span()
element.content = content
return element
return f