PDConSec / vsc-print

Completely local print support for VS Code with syntax-colouring and line numbering
Other
70 stars 28 forks source link

Unable to print indented code block #333

Closed esnahn closed 2 months ago

esnahn commented 3 months ago
    a

When you try to print a file with a code block with 4 indentation,

TypeError: Cannot read properties of undefined (reading 'toUpperCase')
    at e.processFencedBlocks (c:\Users\...\.vscode\extensions\pdconsec.vscode-print-0.12.4\dist\extension.js:2:3418561)
    at e.getBodyHtml (c:\Users\...\.vscode\extensions\pdconsec.vscode-print-0.12.4\dist\extension.js:2:3412214)
    at E.getBodyHtml (c:\Users\...\.vscode\extensions\pdconsec.vscode-print-0.12.4\dist\extension.js:2:3400844)
    at e.HtmlDocumentBuilder.build (c:\Users\...\.vscode\extensions\pdconsec.vscode-print-0.12.4\dist\extension.js:2:3408330)
    at c.respond (c:\Users\...\.vscode\extensions\pdconsec.vscode-print-0.12.4\dist\extension.js:2:3396157)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Server.<anonymous> (c:\Users\...\.vscode\extensions\pdconsec.vscode-print-0.12.4\dist\extension.js:2:3383933)

This error is displayed instead.

minimal test file: print test.md

PeterWone commented 3 months ago

Oh, it will be because there's no lang specified, I'll take care of that in the emergency bugfix I'm about to release.

PeterWone commented 3 months ago

Get the latest and if it's working correctly please close the issue.

esnahn commented 2 months ago

Fixed! Thanks for the fast response.