File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -346,9 +346,12 @@ def on_input_change(self, event):
346
346
md2html = Markdown (extensions = constants .extensions , extension_configs = constants .extension_configs )
347
347
markdownText = self .text_area .get ("1.0" , END )
348
348
html = md2html .convert (markdownText )
349
+ template_top = constants .default_template_top
350
+ template_bottom = constants .default_template_bottom
351
+ final = f"{ template_top } \n { html } \n { template_bottom } "
349
352
self .export_options_text_area .delete ("1.0" , END )
350
- self .export_options_text_area .insert (END , html )
351
- self .preview_document .load_html (html )
353
+ self .export_options_text_area .insert (END , final )
354
+ self .preview_document .load_html (final )
352
355
self .preview_document .add_css (self .css )
353
356
self .check_markdown_highlighting (start = "1.0" , end = END )
354
357
self .text_area .edit_modified (0 ) # resets the text widget to generate another event when another change occours
You can’t perform that action at this time.
0 commit comments