const pattern = registry.patterns[name];
if (pattern.transform) {
try {
pattern.transform($content);
} catch (e) {
if (dont_catch) {
throw(e);
}
log.error("Transform error for pattern" + name, e);
}
}
<h1>hello</h1>
def foo():
if not bar:
return True