Converting blocks to plain text #2482
Replies: 4 comments
-
|
It isn't super clear what a plaintext representation should look like, at least markdown tries to preserve some of the structure of the document. Could you not just strip markdown formatting from the markdown representation? |
Beta Was this translation helpful? Give feedback.
-
|
Actually stripping markdown would be a good solution too. But I think it would be nice to have an adapter doing the equivalent thing without the overhead of re-parsing the markdown output and then stripping informations from it. Basically the output I would expect from such a converter would be equivalent to a stripped markdown version: you just get plaintext, without any formatting. Things that can't be displayed as pure text such as tables could use the markdown representation as it's visually human readable without knowing anything about any syntax. |
Beta Was this translation helpful? Give feedback.
-
|
Makes sense. A quick workaround could also be to export to HTML and use something like If the current situation is a blocker for you, let us know and we can prioritize this! |
Beta Was this translation helpful? Give feedback.
-
|
That's a good idea, but I think some things like tables would be absolutely unreadable if we do that. Note that it is not a priority at all, just a thing that would be nice to have :) In the meantime, stripping markdown is a perfectly acceptable compromise. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the same vein as
editor.blocksToMarkdownLossyandeditor.blocksToHTMLLossy, it would be nice to have aeditor.blocksToPlainTextLossyconverter.The goal would be to allow converting a set of blocks to plain text, without any particular formatting. Use cases are various, the current one I have is to extract plain text from blocks to make a summary.
Would that be possible? Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions