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

Export to HTML not working: TypeError: Cannot read properties of null (reading 'replace') #157

Open
codewizard13 opened this issue Jan 11, 2024 · 0 comments

Comments

@codewizard13
Copy link

Problem Description:

When I try to export markdown to HTML I get the following error in VSCode output:

Cannot read properties of null (reading 'replace')
TypeError: Cannot read properties of null (reading 'replace')
at normalize (c:\Users\erich.vscode\extensions\jebbs.markdown-extended-1.1.3\node_modules\mimoza\index.js:32:21)
at Mimoza.getMimeType (c:\Users\erich.vscode\extensions\jebbs.markdown-extended-1.1.3\node_modules\mimoza\index.js:158:21)
at Function._getMimeType [as getMimeType] (c:\Users\erich.vscode\extensions\jebbs.markdown-extended-1.1.3\node_modules\mimoza\index.js:206:18)
at html5_embed_renderer (c:\Users\erich.vscode\extensions\jebbs.markdown-extended-1.1.3\node_modules\markdown-it-html5-embed\lib\index.js:41:25)
at md.renderer.rules.image (c:\Users\erich.vscode\extensions\jebbs.markdown-extended-1.1.3\node_modules\markdown-it-html5-embed\lib\index.js:108:14)
at s.renderInline (c:\Users\erich.vscode\extensions\yzhang.markdown-all-in-one-3.6.1\dist\node\main.js:1:450022)
at s.render (c:\Users\erich.vscode\extensions\yzhang.markdown-all-in-one-3.6.1\dist\node\main.js:1:450426)
at md.renderer.render (c:\Users\erich.vscode\extensions\bierner.markdown-preview-github-styles-2.0.3\dist\extension.js:82:59)
at f.render (c:\Users\erich.vscode\extensions\yzhang.markdown-all-in-one-3.6.1\dist\node\main.js:1:443558)
at renderHTML (c:\Users\erich.vscode\extensions\jebbs.markdown-extended-1.1.3\out\src\services\exporter\shared.js:43:40)
at renderPage (c:\Users\erich.vscode\extensions\jebbs.markdown-extended-1.1.3\out\src\services\exporter\shared.js:28:16)
at HtmlExporter. (c:\Users\erich.vscode\extensions\jebbs.markdown-extended-1.1.3\out\src\services\exporter\html.js:40:48)
at Generator.next ()
at fulfilled (c:\Users\erich.vscode\extensions\jebbs.markdown-extended-1.1.3\out\src\services\exporter\html.js:5:58)

Steps to Recreate:

  1. Create a markdown file with extension .md
  2. Do CTRL+SHIFT+P (Windows) > Markdown: Export Markdown to File > Self-Contained HTML
  3. Observe the stated error sequence

Other Info:

  • Last time the plugin worked was Dec 29, 2023
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

1 participant