- Install the
stylelint
,prettier
, andmarp
extensions in VSCode. - Execute
npm install
.
-
To create a new markdown file:
- Use
npm run new ${filename}
or - Simply run
npm run new
.
- Use
-
To convert markdown to PDF:
- Use
npm run pdf ${relative path}
. - Use
npm run pdf -h ${relative path}
. (If use HTML)
- Use
-
To convert markdown to PPTX:
- Use
npm run pptx ${relative path}
. - Use
npm run pptx -h ${relative path}
. (If use HTML)
- Use
-
To modify the theme:
- Edit the files in
/style/scss/*.scss
. - Then, run
npm run css
. - Afterwards, adjust the
"markdown.marp.themes"
value in.vscode/settings.json
.
- Edit the files in
-
If you wish to use the DeepL API to translate the title before uploading to SlideShare:
- Copy the example environment file with
cp .env.example .env
. - Set your
DEEPL_API_KEY
in the.env
file. - Execute the
pdf/pptx
command using the-d
option.
- Copy the example environment file with