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

Total revamp of the auto-format feature #105

Merged
merged 2 commits into from
Mar 20, 2020
Merged

Total revamp of the auto-format feature #105

merged 2 commits into from
Mar 20, 2020

Conversation

fredck
Copy link
Contributor

@fredck fredck commented Mar 20, 2020

The auto-format feature has been re-written from scratch with the following changes:

  • It's more strict when matching inline formatting markers:
    • The opening and closing markers must be touching a word. E.g. **bold** vs ** non-bold **.
    • No cross styling matches. E.g. [bo_ld] outside bold_ (no match), _before [bold] after_ (match).
    • No match inside inline code or code-blocks.
  • It allows for the formatting of paragraphs with contents. E.g. type at the beginning of a paragraph.
  • It has a better API:
    • Allows for easily registering new auto-formatters.
    • Allows for extending it with new types of auto-formatters (other than the built-in "inline" and "block").
  • Performance optimizations.

Fixes #34.

Verified

This commit was signed with the committer’s verified signature.
suemto suem
…one character inside only.
@fredck fredck merged commit 8630333 into master Mar 20, 2020
@fredck fredck deleted the t/34 branch March 20, 2020 17:12
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

Successfully merging this pull request may close these issues.

Typing second underscore in a paragraph makes italic from the first one
1 participant