16 lines
332 B
Python
16 lines
332 B
Python
from dataclasses import dataclass
|
|
from typing import Protocol
|
|
|
|
|
|
@dataclass
|
|
class Templating(Protocol):
|
|
string: str
|
|
|
|
|
|
@dataclass
|
|
class Markdown:
|
|
string: str = (
|
|
"{{#tag}}#{{tag}}\n{{/tag}}"
|
|
"{{#quote}}> {{quote}}{{/quote}} {{#page}}[p. {{page}}]{{/page}}\n"
|
|
"{{#note}} NOTE: {{note}}{{/note}}"
|
|
)
|