Skip to content

Jira-Syntax Fixed-Width Markup Parsing Issue #10647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gohrner opened this issue Feb 27, 2025 · 2 comments
Open

Jira-Syntax Fixed-Width Markup Parsing Issue #10647

gohrner opened this issue Feb 27, 2025 · 2 comments

Comments

@gohrner
Copy link

gohrner commented Feb 27, 2025

Bug Report: Pandoc Jira-Syntax Fixed-Width Markup Parsing Issue

Description of the Problem: Pandoc does not correctly parse/translate (newer?) Jira syntax for fixed-width font. The syntax {{{}fixed width font{}}} is not converted correctly; the nested curly bracket pairs before and after the text remain unchanged in the output.

Steps to Reproduce:

  1. Run the following command:
    timeout 60 pandoc -f jira -t gfm --wrap=preserve --sandbox
  2. Use the following Jira-formatted input:
    {{{}fixed width font{}}}
    
  3. Observe the output, which incorrectly retains the surrounding curly brackets.

Expected Behavior:
The output should correctly format the fixed-width text without preserving the extra curly brackets.

My Current Workaround: I preprocess Jira markup as follows:

jiraFormattedText = jiraFormattedText
            .replaceAll("\\{\\{\\{", "\\{\\{")
            .replaceAll("\\{\\}\\}\\}", "\\}\\}");

Pandoc Version:

  • Version: pandoc-3.6.3-1-amd64.deb
  • Operating System: Debian 12 "Bookworm"
@gohrner gohrner added the bug label Feb 27, 2025
@silby
Copy link
Contributor

silby commented Mar 19, 2025

It's not clear to me from this report how Jira renders your example. Could you perhaps provide a screenshot? Pandoc's Jira reader/writer references this Atlassian documentation.

@gohrner
Copy link
Author

gohrner commented Mar 20, 2025

This is just rendered as normal fixed width text, no difference to {{fixed width font}} as far as I can tell.

I'm not 100% sure when Jira decides to use this kind of markupm but it seems to be related to fixed-width formatted partial words.

Image

This is what the editor generates:

Test {{monospaced}} word.

Test partially{{{}monospaced{}}} word.

Writing only Test partially{{monospaced}} word. does not change the formatting:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants