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

need help ,table cell content line break break document #582

Open
sdhjl2000 opened this issue Jun 28, 2023 · 0 comments
Open

need help ,table cell content line break break document #582

sdhjl2000 opened this issue Jun 28, 2023 · 0 comments

Comments

@sdhjl2000
Copy link

sdhjl2000 commented Jun 28, 2023

MutableDataSet options = new MutableDataSet();
        options.setFrom(ParserEmulationProfile.MARKDOWN);
        options.set(Parser.EXTENSIONS, Lists.newArrayList(com.vladsch.flexmark.ext.tables.TablesExtension.create()));
        options.set(TablesExtension.FORMAT_TABLE_TRIM_CELL_WHITESPACE, true);
        Parser parser = Parser.builder(options).build();
        Node document = parser.parse(markdown);
        List<String> paragraphs=new ArrayList<>();
for (Node node = document.getFirstChild(); node != null; node = node.getNext()) {
            if (node instanceof Paragraph) {
                paragraphs.add(node.getChars().toString());
            }
            if (node instanceof TableBlock) {
             }

if table cell content contains two line break "\n", content after line break recognition as Paragraph

@sdhjl2000 sdhjl2000 changed the title bug ,table cell content line break break document need help ,table cell content line break break document Jun 29, 2023
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