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

Text without style should be processed as style of type "unstyled" #1

Closed
SamyPesse opened this issue Mar 12, 2016 · 0 comments
Closed

Comments

@SamyPesse
Copy link
Member

Currently, inlineStyleRanges does not contain range for unstyled text, it's causing the markdown syntax to be escaped correctly.

The workflow for applying inlineStyleRanges should be:

  • Linearize ranges
  • Fill empty ranges (text without ranges) with { offset: X, length: N, style: 'unstyled' }

Since the method is called recursively, text inside bold/italic/... will be correctly escaped when required.

@SamyPesse SamyPesse changed the title Text without tsyle should be processed as style of type "unstyled" Text without style should be processed as style of type "unstyled" Mar 12, 2016
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