Skip to content

Descriptions authored in wiki markup are rewritten on upload (# ordered lists become h1) #106

Closed

Description

@f3rdy

markdown_to_wiki() runs on every description (create: services/issues.py:180, update: :298)
with no way to opt out. Input that is already legacy wiki markup is therefore transformed:

  • # item (wiki ordered list) -> h1. item, because _HEADING_RE matches before _ORDERED_RE
  • authors of house formats built on panel macros only keep their layout by accident, since panels
    match no Markdown rule

Reproduce (1.22.1)

from budjira.utils.markdown_to_jira import markdown_to_wiki
print(markdown_to_wiki("{panel:bgColor=#eae6ff}\n# first\n# second\n{panel}"))

Expected: a way to declare that a description is already in the instance's dialect and must be
passed through unchanged - ideally per connection, see #84 and #96.

Workaround: author ordered lists as Markdown (1.) and let the converter produce the wiki
form. Fragile, because it only holds as long as the mapping table does not change.

Activity

  1. f3rdy commented on Aug 13, 2026

    @f3rdy
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions