Skip to content

feat(jtk): port wiki markup detection #37

Description

@rianjs

Port wiki markup detection and conversion from jira-ticket-cli PR #63.

Files to create:

  • tools/jtk/api/wiki.go - Wiki markup detection and conversion
  • tools/jtk/api/wiki_test.go - Unit tests

Features:

  • IsWikiMarkup() - detects common wiki patterns
  • WikiToMarkdown() - converts wiki markup to markdown
  • Pipeline: wiki → markdown → ADF

Supported patterns:

  • Headings: h1. through h6.
  • Code blocks: {code}...{code}
  • Monospace: {{text}}
  • Links: [text|url]
  • Images: !image.png!
  • Blockquotes: bq. and {quote}...{quote}
  • Bullet lists: * item, ** nested
  • Noformat: {noformat}...{noformat}
  • Horizontal rules: ----

Source: open-cli-collective/jira-ticket-cli#63

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions