Skip to content
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

Jira-Syntax Fixed-Width Markup Parsing Issue #10647

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

Jira-Syntax Fixed-Width Markup Parsing Issue #10647

gohrner opened this issue Feb 27, 2025 · 0 comments
Labels

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant