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

[WIP] Fix handling of inline and preformatted tags #41

Closed
wants to merge 11 commits into from
Closed

[WIP] Fix handling of inline and preformatted tags #41

wants to merge 11 commits into from

Commits on May 28, 2019

  1. Add additional whitespace handling tests

    - Split various element tests into separate tests for inline and block
      tags
    - Add tests for various scenarios involving inline tags, including
      inside other tags and alongside text nodes
    - Add test for not reformatting text inside `<pre>` tags
    jarrodldavis committed May 28, 2019
    Configuration menu
    Copy the full SHA
    8bcc0fe View commit details
    Browse the repository at this point in the history
  2. Add more <pre> tests

    jarrodldavis committed May 28, 2019
    Configuration menu
    Copy the full SHA
    45a68eb View commit details
    Browse the repository at this point in the history
  3. Add element definitions

    Add definitions for all elements, preformatted elements, and inline
    elements (as specified by TypeScript and Mozilla Developer Network).
    jarrodldavis committed May 28, 2019
    Configuration menu
    Copy the full SHA
    c6b31c0 View commit details
    Browse the repository at this point in the history
  4. Configure options for tag handling

    Add options for specifying what tags should be treated as inline and
    preformatted elements.
    jarrodldavis committed May 28, 2019
    Configuration menu
    Copy the full SHA
    e74fbe3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ccc7ef5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d29c5d7 View commit details
    Browse the repository at this point in the history
  7. Fix printing of inline elements

    - Collect inline element tags (as defined by the `svelteInlineElements`
      option) into inline groups when printing children.
    - When printing children of inline elements, don't add surrounding lines
      around the child contents
    jarrodldavis committed May 28, 2019
    Configuration menu
    Copy the full SHA
    45175d3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4059777 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    dd4dd8b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    fad4c01 View commit details
    Browse the repository at this point in the history
  11. Update inline-with-block tests

    Don't break immediately after the opening tag or immediately before the
    closing tag, even with block element children.
    jarrodldavis committed May 28, 2019
    Configuration menu
    Copy the full SHA
    a599244 View commit details
    Browse the repository at this point in the history