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

limitations of spanned text formatting #71

Open
bluskript opened this issue Nov 8, 2021 · 1 comment
Open

limitations of spanned text formatting #71

bluskript opened this issue Nov 8, 2021 · 1 comment

Comments

@bluskript
Copy link
Member

The formatting system we have now currently has clients provide text ranges to format in specific ways. This has a few flaws compared to markdown which should be addressed:

  1. Harder to upgrade. Clients will need to update their text inputs to make it possible to use new formatting capabilities. Increases maintainer workload. With markdown, unsupported syntax could still be written with an outdated client and it would still work.

  2. Impossible / Inconsistent on some platforms. Bridges from other services will face issues with formatting, because of how on most of them the formatting is fundamentally text-based.

@sowelipililimute
Copy link
Member

  1. clients can just display a format for unsupported formats no problem, which will have the same amount of meaning as unknown symbols to a user.
  2. this is actually the easiest format for bridging: all the data is already in a convenient format, ready to be made into whatever format the service can work with, which isn't necessarily markdown. incompatible formats can be discarded or converted into other formats via simple manipulation of span objects instead of trying to manipulate a CST for markdown, or unparsed markdown.

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

2 participants