소스 검색

Fixed class attribute in markdown (closes #838)

Michele Tessaro 7 년 전
부모
커밋
864f43e52f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plantuml/plantuml_md.py

+ 1 - 1
plantuml/plantuml_md.py

@@ -70,7 +70,7 @@ class PlantUMLBlockProcessor(markdown.blockprocessors.BlockProcessor):
         # Generate image from PlantUML script
         imageurl = self.config['siteurl']+'/'+generate_uml_image(path, text, format)
         # Create image tag and append to the document
-        etree.SubElement(parent, "img", src=imageurl, alt=alt, classes=classes)
+        etree.SubElement(parent, "img", src=imageurl, alt=alt, attrib={'class':classes})
 
 
 # For details see https://pythonhosted.org/Markdown/extensions/api.html#extendmarkdown