I like Marp, but I don't particularly like using VS Code. As a user of the CLI, I'd like to be able to write my markdown in any editor and then reference a hosted stylesheet to use as a particular theme. This is common — as an example — for my organization, as we want to use a single source of truth for our template(s).
Implementation
In the config.ts, we don't try to resolve the local path if http is included within the string passed to the --theme argument:
Description
I like Marp, but I don't particularly like using VS Code. As a user of the CLI, I'd like to be able to write my markdown in any editor and then reference a hosted stylesheet to use as a particular theme. This is common — as an example — for my organization, as we want to use a single source of truth for our template(s).
Implementation
In the
config.ts
, we don't try to resolve the local path ifhttp
is included within the string passed to the--theme
argument:Further, on the
load()
function, we either use the local file via a buffer, or fetch the remote file:Testing
Coverage was above the 95% threshold 🎉
You can use this ref when building the binary: