Skip to content

Stdin mode produces empty bullet points instead of converting Markdown #1

@wheeljackz

Description

@wheeljackz

Problem

When using fizzy-md in stdin mode to convert Markdown and pass to fizzy comment create --body -, the Markdown is not properly converted to HTML. Instead, it produces empty bullet points.

Reproduction

echo "**Test** _markdown_" | fizzy-md comment create --card 208 --body -

Expected Output

Should create a comment with HTML:

<p><strong>Test</strong> <em>markdown</em></p>

Actual Output

Creates a comment with:

{
  "body": {
    "html": "<div class=\"action-text-content\">\n  <ul>\n<li></li>\n</ul>\n</div>\n",
    "plain_text": ""
  }
}

The Markdown content is lost, replaced with an empty bullet list.

Workaround

Using raw HTML via fizzy comment create --body '<p>...' works correctly, but defeats the purpose of the Markdown wrapper.

Context

  • fizzy-md version dev (installed via go install)
  • macOS (Apple Silicon)
  • fizzy-cli version 2.6.1

Related

This may be related to how stdin is being read or passed through when the --body - flag is detected. The preprocessing mode (converting first, then passing HTML) works fine:

# This works:
HTML=$(echo "**Test**" | fizzy-md)
fizzy comment create --card 208 --body "$HTML"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions