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

Table conversion is not working properly #26

Open
RedX2501 opened this issue Nov 7, 2024 · 0 comments
Open

Table conversion is not working properly #26

RedX2501 opened this issue Nov 7, 2024 · 0 comments

Comments

@RedX2501
Copy link

RedX2501 commented Nov 7, 2024

Original issue: chintans1/markdown-to-jira#10

I tested with version 3.0

This:

| Header 1 | Header 2 | Header 3 |
|-----|-----|-----|
| A | B | C |
| D | E | F |

Unfortunaltely is not properly converted to this:

|| Header 1 || Header 2 || Header 3 ||
| A | B | C |
| D | E | F |

This result is given instead:

| Header 1 | Header 2 | Header 3 |
|-----|-----|-----|
| A | B | C |
| D | E | F |

My test script:

import jira2md from "jira2md";

const test = "this is a simple table\n" +
    "\n" +
    "| Schema Hint       | Value |\n" +
    "| ----------------- | ----- |\n" +
    "| autosar_4-3-0.xsd | 4.3.0 |\n" +
    "| autosar_4-3-1.xsd | 4.3.1 |\n" +
    "| autosar_4-4-0.xsd | 4.4.0 |"

const result = jira2md.to_jira(test);

console.info(result)

Result:

this is a simple table

| Schema Hint       | Value |
| ----------------- | ----- |
| autosar_4-3-0.xsd | 4.3.0 |
| autosar_4-3-1.xsd | 4.3.1 |
| autosar_4-4-0.xsd | 4.4.0 |
manios added a commit to manios/J2M that referenced this issue Dec 5, 2024
- Fix panels and table conversion (kylefarris#26)
- Convert yaml code properly to jira
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant