Skip to content

Commit

Permalink
Merge pull request #348 from marp-team/stable-preview
Browse files Browse the repository at this point in the history
Mark preview window as stable
  • Loading branch information
yhatt committed May 11, 2021
2 parents 5e32c47 + 33ff5f0 commit 3f879b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Changed

- Upgrade dependent packages to the latest version ([#347](https://github.com/marp-team/marp-cli/pull/347))
- Mark preview window as stable ([#348](https://github.com/marp-team/marp-cli/pull/348))

## v1.0.3 - 2021-05-09

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Marp CLI server will provide the list of served files by default, but you can pl

Place Markdown named `index.md` or `PITCHME.md` ([GitPitch style](https://gitpitch.com/docs/getting-started/pitchme/)) to served directory. It would be redirected just accessing to `http://localhost:8080/`.

### Preview window (_EXPERIMENTAL:_ `--preview` / `-p`)
### Preview window (`--preview` / `-p`)

When conversions were executed together with `--preview` (`-p`) option, Marp CLI will open preview window(s) to check the converted result immediately.

Expand Down Expand Up @@ -436,7 +436,7 @@ If you want to prevent looking up a configuration file, you can pass `--no-confi
| `options` | object | | The base options for the constructor of engine |
| `output` | string | `--output` `-o` | Output file path (or directory when input-dir is passed) |
| `pdf` | boolean | `--pdf` | Convert slide deck into PDF |
| `preview` | boolean | `--preview` `-p` | Open preview window _(EXPERIMENTAL)_ |
| `preview` | boolean | `--preview` `-p` | Open preview window |
| `server` | boolean | `--server` `-s` | Enable server mode |
| `template` | `bare` \| `bespoke` | `--template` | Choose template (`bespoke` by default) |
| `theme` | string | `--theme` | Override theme by name or CSS file |
Expand Down
4 changes: 2 additions & 2 deletions src/marp-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const marpCli = async (
},
preview: {
alias: 'p',
describe: 'Open preview window (EXPERIMENTAL)',
describe: 'Open preview window',
hidden: !!process.env.IS_DOCKER,
group: OptionGroup.Basic,
type: 'boolean',
Expand Down Expand Up @@ -326,7 +326,7 @@ export const marpCli = async (
preview.on('exit', () => res(0))
preview.on('opening', (location: string) => {
const loc = location.substr(0, 50)
const msg = `[Preview] (EXPERIMENTAL) Opening ${loc}...`
const msg = `[Preview] Opening ${loc}...`
cli.info(chalk.cyan(msg))
})

Expand Down

0 comments on commit 3f879b2

Please sign in to comment.