| Summary: | the editor area (not the preview) show pandoc table in strange format | ||
|---|---|---|---|
| Product: | [Applications] ghostwriter | Reporter: | LL <lingwangneuraleng> |
| Component: | general | Assignee: | megan.conkle |
| Status: | CLOSED NOT A BUG | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | table-in-editing-area | ||
|
Description
LL
2022-10-16 10:39:08 UTC
My apologies for the confusion. This is actually expected behavior since the syntax highlighting is handled by cmark-gfm, which does not support the Pandoc table extensions. The highlighter is instead seeing these tables as setext headings. One workaround would be for you change the settings to not use large headings. (It will still be bold.) I don't want to add highlighting for Pandoc-specific extensions since I would like to maintain a means of warning the end user that their Markdown is not portable/compatible with other Markdown processors. (In reply to megan.conkle from comment #1) > My apologies for the confusion. This is actually expected behavior since > the syntax highlighting is handled by cmark-gfm, which does not support the > Pandoc table extensions. The highlighter is instead seeing these tables as > setext headings. One workaround would be for you change the settings to not > use large headings. (It will still be bold.) I don't want to add > highlighting for Pandoc-specific extensions since I would like to maintain a > means of warning the end user that their Markdown is not portable/compatible > with other Markdown processors. Is it possible to turn off the syntax highlighting completely at the editing area? |