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
222 B
10 lines
222 B
from panflute import Element
|
|
import re
|
|
|
|
def replaceEl(e: Element, r: Element) -> Element:
|
|
parent = e.parent
|
|
parent.content[e.index] = r
|
|
r.parent = parent
|
|
return r
|
|
def deleteEl(e: Element):
|
|
e.classes.append("deleted")
|
|
|