Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script error when md-template.html exists and preview is enabled #209

Open
sam-wheat opened this issue Oct 26, 2020 · 1 comment
Open

Script error when md-template.html exists and preview is enabled #209

sam-wheat opened this issue Oct 26, 2020 · 1 comment

Comments

@sam-wheat
Copy link

Installed product versions

  • Visual Studio: 2019 latest patch
  • This extension: 1.12.253

Description

I added md-template.html to the folder containing my markdown files and immediately upon doing so I began receiving errors such as the ones shown below in the screen caps.
The content of the md-template file and the content of the .md file itself appear to have no influence on wether the error is encountered or not.
It appears the presence of the file itself is enough to trigger the error.

The error dialog reappears with every keystroke. Answering Yes or No to dialog appears to have no effect. The dialog blocks the editor from being used so it renders the extension useless. I discovered that turning off the preview window will cause the error to stop - however being able to preview as a document is being created is very helpful. Is there anything I can do to fix this?

Content of md-template.html

[content]

I tried including the full html tag, head, body, etc. and I still get the error.

Content of .md file:

# test

Steps to recreate

Create a file named md-template.html in the same folder as your markdown files. Set the content of the file to the html template shown in the help page of this site or simply "[content]"

Current behavior

See attached screen caps

Expected behavior

No script errors.
Capture
Capture2

@setkov
Copy link

setkov commented Jan 21, 2022

I have same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants