Compare commits
3 commits
6de4ea2743
...
2e76687172
Author | SHA1 | Date | |
---|---|---|---|
2e76687172 | |||
6fe4ef8aaf | |||
f49e791807 |
2 changed files with 4 additions and 4 deletions
|
@ -16,9 +16,9 @@ def parse_command(code: str) -> CommandCallable:
|
|||
for line in code_lines:
|
||||
indented_code_lines.append(("\t" if tabs else " ")+line)
|
||||
code = "def command(element: Command, context: Context) -> list[Element]:\n"+"\n".join(indented_code_lines)
|
||||
command_env = command_env.__dict__
|
||||
exec(code, command_env)
|
||||
return command_env["command"]
|
||||
env = {**command_env.__dict__}
|
||||
exec(code, env)
|
||||
return env["command"]
|
||||
|
||||
# This function is called in trasform.py, defining a command which can be
|
||||
# called later
|
||||
|
|
|
@ -247,7 +247,7 @@ class HTMLGenerator(OutputGenerator):
|
|||
if (e.format == "InlineMath"):
|
||||
self.write(rawhtml)
|
||||
else:
|
||||
self.writeraw()
|
||||
self.writeraw(rawhtml)
|
||||
|
||||
def generate_RawInline(self, e: RawInline):
|
||||
if e.format == "html":
|
||||
|
|
Loading…
Reference in a new issue