diff --git a/cli/cmd/cmd_convert.go b/cli/cmd/cmd_convert.go index e1c441b..61f7e0e 100644 --- a/cli/cmd/cmd_convert.go +++ b/cli/cmd/cmd_convert.go @@ -30,7 +30,6 @@ func (cli *CLI) convert(input []byte) ([]error, error) { conv := converter.NewConverter( converter.WithPlugins( - // TODO: there should be a golden file test for functionality that needs the base plugin base.NewBasePlugin(), commonmark.NewCommonmarkPlugin( commonmark.WithStrongDelimiter(cli.config.strongDelimiter), diff --git a/cli/cmd/exec_test.go b/cli/cmd/exec_test.go index 32d3328..a7d1811 100644 --- a/cli/cmd/exec_test.go +++ b/cli/cmd/exec_test.go @@ -272,6 +272,18 @@ func TestExecute(t *testing.T) { inputArgs: []string{"html2markdown", `--opt-strong-delimiter`, `__`}, }, }, + { + desc: "[convert] collapse", + + input: CLIInput{ + modeStdin: modePipe, + modeStdout: modePipe, + modeStderr: modePipe, + + inputStdin: []byte("
Some bold text
"), + inputArgs: []string{"html2markdown"}, + }, + }, // - - - - - validation of options - - - - - // { diff --git a/cli/cmd/testdata/TestExecute/[convert]_collapse/stderr.golden b/cli/cmd/testdata/TestExecute/[convert]_collapse/stderr.golden new file mode 100644 index 0000000..e69de29 diff --git a/cli/cmd/testdata/TestExecute/[convert]_collapse/stdout.golden b/cli/cmd/testdata/TestExecute/[convert]_collapse/stdout.golden new file mode 100644 index 0000000..813aa84 --- /dev/null +++ b/cli/cmd/testdata/TestExecute/[convert]_collapse/stdout.golden @@ -0,0 +1 @@ +Some **bold** text