Commit ef759b52 authored by Andreas Jung's avatar Andreas Jung

enabled images supported for STXNG by default

parent df18fde8
...@@ -16,6 +16,7 @@ use of StructuredTextNG """ ...@@ -16,6 +16,7 @@ use of StructuredTextNG """
import HTMLClass, DocumentClass, ClassicDocumentClass import HTMLClass, DocumentClass, ClassicDocumentClass
import DocumentWithImages, HTMLWithImages
from ST import Basic from ST import Basic
import re, string,sys import re, string,sys
...@@ -24,10 +25,13 @@ from STletters import letters ...@@ -24,10 +25,13 @@ from STletters import letters
Document = DocumentClass.DocumentClass() Document = DocumentClass.DocumentClass()
HTMLNG = HTMLClass.HTMLClass() HTMLNG = HTMLClass.HTMLClass()
DocumentImages = DocumentWithImages.DocumentWithImages()
HTMLNGImages = HTMLWithImages.HTMLWithImages()
def HTML(aStructuredString, level=1, header=1): def HTML(aStructuredString, level=1, header=1):
st = Basic(aStructuredString) st = Basic(aStructuredString)
doc = Document(st) doc = DocumentImages(st)
return HTMLNG(doc,header=header,level=level) return HTMLNGImages(doc,header=header,level=level)
def StructuredText(aStructuredString, level=1): def StructuredText(aStructuredString, level=1):
return HTML(aStructuredString,level) return HTML(aStructuredString,level)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment