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

♻️ Refactor backslash escape logic #276

Merged
merged 2 commits into from
Jun 2, 2023
Merged

Commits on Jun 2, 2023

  1. ♻️ Refactor backslash escape logic

    Smartquotes, typographic replacements and plain text links can now be escaped with backslash
    (e.g. `\(c)` or `google\.com` are no longer replaced).
    
    Implements upstream: markdown-it/markdown-it@75037c6
    
    Breaking:
    - `text_collapse` rule is renamed to `fragments_join`
    - Added a new token type `text_special` to store escaped characters, same as `text` but
      unaffected by replacement plugins (smartquotes, typographer, linkifier, etc.).
    - Added a new rule `text_join` in `core` ruler.
      Text replacement plugins may choose to insert themselves before it.
    chrisjsewell committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    05c6654 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3a86d3b View commit details
    Browse the repository at this point in the history