How to Convert Markdown Files to PDF,HTML & PNG,JPG Images Automatically in VSCode IDE
13 views
Jul 5, 2025
Get the full source code of application here:
View Video Transcript
0:00
Uh hello guys, welcome to this video. So
0:02
in this video, I'll show you a VS Code
0:04
extension which allows you to convert
0:06
your markdown files directly into PDF.
0:08
So if you have a markdown file like
0:11
this, as you can see, I have this
0:13
markdown file and I want to convert this
0:17
into PDF directly in VS code without
0:19
leaving it. So you just need to go to
0:21
the extensions tab and you just need one
0:23
extension. So simply inside your search
0:27
bar simply type your markdown to PDF and
0:30
this extension will come right here
0:32
markdown PDF and it does the same thing
0:35
that is mentioned it converts the
0:37
markdown file into PDF. So first of all
0:40
just click the install button to
0:42
activate this extension. So once the
0:45
extension is activated
0:47
you actually go to the actual markdown
0:50
file that you want to convert. Simply go
0:52
to inside this file and there will be
0:55
this option appearing and if you right
0:57
click in the context menu you will see
1:01
export the markdown to PDF.
1:05
So if you click this button
1:07
automatically in the
1:10
a PDF file it is exporting the PDF. So
1:13
just wait for some time and
1:16
it will export all the markdown file
1:18
into this PDF. You will see the PDF file
1:21
has been generated and if you open the
1:23
PDF file you will see all the content
1:26
that you saw inside your markdown file
1:28
is successfully converted into PDF file.
1:31
So in this easy way you can convert your
1:33
markdown into PDF and also we can even
1:37
convert them into HTML, PNG and JPG file
1:41
as well.
1:42
You also see these options if you want
1:45
to convert this markdown into HTML. So
1:47
it will create this sample HTML file as
1:50
well. So as you can see
1:54
you can now open this HTML in the
1:56
browser. So this is
1:58
can see
2:02
or we can even take the screenshot and
2:04
export this as a PNG file as well. So if
2:07
you take you will see it will create a
2:12
image file which is sample.png.
2:16
This is your markdown
2:18
converted into a single PNG image. So
2:21
all these things you can it's a ultimate
2:24
extension to basically convert your
2:27
markdown into PDF, HTML or images as
2:30
well. So this is the extension here.
2:31
Simply activate this extension and start
2:34
using it. And this lets you add this all
2:38
these options right in the contest menu
2:40
itself. So if you just right click all
2:42
these options are there. So this is the
2:45
extensions. So thank you very much for
2:47
watching this video and also check out
2:49
my website freemediatools.com
2:53
uh which contains thousands of tools.
#Programming
#Software