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.
19 lines
508 B
19 lines
508 B
from panflute import Quoted, Link
|
|
|
|
|
|
from .command import Command, InlineCommand, BlockCommand, CodeCommand
|
|
from .context import Group, BlockGroup, InlineGroup
|
|
from .whitespace import Whitespace, NBSP
|
|
|
|
# This is a small extension to the Quoted panflute elements which allows to
|
|
# have language-aware quotation marks.
|
|
class FQuoted(Quoted):
|
|
style: str
|
|
def __init__(self, *args, **kwargs):
|
|
self.style = kwargs["style"]
|
|
del kwargs["style"]
|
|
super().__init__(*args, **kwargs)
|
|
|
|
|
|
class FileLink(Link):
|
|
pass
|
|
|