raiseInlineError(f"The command {self.attributes['c']} returned multiple Paragraphs and must be executed using `::: {{c={self.attributes['c']}}}\\n:::`.\n\n{content}")
raiseInlineError(f"The command{'s'iflen(names)>1else''}{names[0]iflen(names)==1elsenames} was called in an Inline way but returned Block content. Put it in a paragraph alone or execute it as a Div using: \n::: {{c={names[0]iflen(names)==1else'<command_name>'}}}\n:::")
else:
raiseerr
deftransform_Doc(self,e:Doc)->Doc:
deftransform_Doc(self,e:Doc)->Doc:
ifself.contextisnotNone:
ifself.contextisnotNone:
@ -96,6 +108,19 @@ class TransformProcessor(NOPProcessor):