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

Rich text API #1423

Open
bartfeenstra opened this issue Apr 27, 2024 · 0 comments
Open

Rich text API #1423

bartfeenstra opened this issue Apr 27, 2024 · 0 comments
Labels
BC break Breaks backwards compatibility with existing integrations enhancement New feature or request python Pull requests that update Python code
Milestone

Comments

@bartfeenstra
Copy link
Owner

bartfeenstra commented Apr 27, 2024

  • document-based (this would actually be a separate follow-up feature)
    • titles
    • dates
    • authors
  • per-text content type, e.g. any piece of natural language has a content type and a locale
  • allow plain text extraction (for search index)
  • Implement this for Note and Described
  • Introduce a new RichText interface to capture this
  • Update existing methods to return not just str but str | RichTextStr where RichTextStr(RichText, str)
  • Can this leverage renders somehow? Maybe those should provide extensions and content types they can render. Or better, just content types and keep a global content type map. Does a library for that already exist?

This can be used to represent pages with managed content, but also notes attached to entities

@bartfeenstra bartfeenstra added enhancement New feature or request python Pull requests that update Python code labels Apr 27, 2024
@bartfeenstra bartfeenstra added this to the 0.4.0 milestone May 19, 2024
@bartfeenstra bartfeenstra added the BC break Breaks backwards compatibility with existing integrations label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC break Breaks backwards compatibility with existing integrations enhancement New feature or request python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

1 participant