Compare commits

..

No commits in common. "2e766871724fa5a5afece6ba1bb3d75f6e10a748" and "6de4ea2743ca86f044b585c5c4ddf68704102868" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View file

@ -16,9 +16,9 @@ def parse_command(code: str) -> CommandCallable:
for line in code_lines: for line in code_lines:
indented_code_lines.append(("\t" if tabs else " ")+line) indented_code_lines.append(("\t" if tabs else " ")+line)
code = "def command(element: Command, context: Context) -> list[Element]:\n"+"\n".join(indented_code_lines) code = "def command(element: Command, context: Context) -> list[Element]:\n"+"\n".join(indented_code_lines)
env = {**command_env.__dict__} command_env = command_env.__dict__
exec(code, env) exec(code, command_env)
return env["command"] return command_env["command"]
# This function is called in trasform.py, defining a command which can be # This function is called in trasform.py, defining a command which can be
# called later # called later

View file

@ -247,7 +247,7 @@ class HTMLGenerator(OutputGenerator):
if (e.format == "InlineMath"): if (e.format == "InlineMath"):
self.write(rawhtml) self.write(rawhtml)
else: else:
self.writeraw(rawhtml) self.writeraw()
def generate_RawInline(self, e: RawInline): def generate_RawInline(self, e: RawInline):
if e.format == "html": if e.format == "html":