Open KillyMXI opened 4 years ago
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
.
I would also prefer that the .md file extension was not included in the
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.