You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To omit the file extension from the title, you can change this line: https://github.com/yzane/vscode-markdown-pdf/blob/master/extension.js#L327
Change it to var title = path.parse(uri.fsPath).name;, save extension.js and (re)open VS Code.
On my Mac the file was located inside: ~.vscode/extensions/yzane.markdown-pdf-1.4.4.
Having
.md
mentioned in the header is not terribly useful.The simplest option could be to omit the file extension from Title.
Alternatively, Title could be separated, and Filename introduced for the template options to capture the existing behavior.
Title can use the top header in case it's the only one of that level in the document, or fallback to the file name without extension.
This is related to #173 and #193 but different. This issue is about better automatically chosen title.
The text was updated successfully, but these errors were encountered: