We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I noticed ordered lists break after a paragraph:
const fnTranslate = require('md-to-adf') const util = require('util') myJIRAFormattedTextContent = "hello world\n1. foo\n2. bar" const translatedADF = fnTranslate( myJIRAFormattedTextContent ) console.log(util.inspect(translatedADF, {showHidden: false, depth: null, colors: true}))
Logs this:
Document { attrs: { version: 1 }, content: ContentNode { type: 'doc', minLength: 1, content: [ Paragraph { content: ContentNode { type: 'paragraph', minLength: 1, content: [ Text { text: 'hello world', marks: null } ] } }, OrderedList { content: ContentNode { type: 'orderedList', minLength: 1, content: [ ListItem { content: ContentNode { type: 'listItem', minLength: 1, content: [ Paragraph { content: ContentNode { type: 'paragraph', minLength: 1, content: [ Text { text: 'foo', marks: null } ] } } ] } } ] }, attrs: { order: '1' } }, OrderedList { content: ContentNode { type: 'orderedList', minLength: 1, content: [ ListItem { content: ContentNode { type: 'listItem', minLength: 1, content: [ Paragraph { content: ContentNode { type: 'paragraph', minLength: 1, content: [ Text { text: 'bar', marks: null } ] } } ] } } ] }, attrs: { order: '2' } } ] } }
Notice the 2 OrderedList when there should only be 1. I you remove hello world\n, it works as expected.
OrderedList
hello world\n
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I noticed ordered lists break after a paragraph:
Logs this:
Notice the 2
OrderedList
when there should only be 1. I you removehello world\n
, it works as expected.The text was updated successfully, but these errors were encountered: