Skip to content

Releases: github/quote-selection

v0.8.1

23 Aug 11:20
95ca088
Compare
Choose a tag to compare
  • Merge pull request #11 from github/dependabot/npm_and_yarn/lodash-4.17.15 d14d70c
  • Bump lodash from 4.17.11 to 4.17.15 6ca66e7

v0.8.0...v0.8.1

quote-selection 0.8.0

16 Apr 19:50
Compare
Choose a tag to compare
  • BREAKING: Install with options rather than consulting the data-quote-markdown HTML attribute:

    install(container, {
      quoteMarkdown: true,
      copyMarkdown: false,
      scopeSelector: '.js-comment-body'
    })

    This library no longer expects any special markup in your app, except that a <textarea> should be found within container. If your app uses the data-quote-markdown attribute, here is an example for how to make it compatible with this version:

    install(container, {
      quoteMarkdown: container.hasAttribute('data-quote-markdown'),
      scopeSelector: container.getAttribute('data-quote-markdown') || ''
    })
  • BREAKING: Remove support for convering to GitHub-specific syntax. Selection-to-Markdown logic no longer handles specially:

    • <div class="highlight"><pre>
    • <a href="..." class="user-mention">@monalisa</a>
    • <a href="..." class="team-mention">@github/octocats</a>
    • <a href="..." class="issue-link">#123</a>
    • <img alt=":wave:" class="emoji" src="...">
  • An additional quote-selection-markdown event now gets fired on the container element and publishes a reference to fragment which can be used to inject site-specific syntaxes before the selection is converted to text.

  • Preserve ~strikethrough~ when quoting markdown.

quote-selection 0.5.2

15 Feb 23:07
Compare
Choose a tag to compare
  • Ensure that change event is fired after changing textarea value

0.5.1

11 Feb 15:06
Compare
Choose a tag to compare
  • Disable Markdown quoting/copying for Microsoft Edge to prevent crash issues

  • Avoid installing global keydown handler more than once

quote-selection 0.5.0

11 Feb 15:05
Compare
Choose a tag to compare
  • Preserve whitespace when partially selecting contents of a <pre>

  • Preserve fenced code block when partially quote-replying from a <pre>

  • Fix partially parsing Markdown from highlighted code block

  • Restore original selection after copying Markdown

quote-selection 0.4.0

11 Feb 15:05
v0.4.0
Compare
Choose a tag to compare
  • On browser copy action, put Markdown representation of the selected text to clipboard

quote-selection 0.3.1

11 Feb 15:03
Compare
Choose a tag to compare
  • Ignore exceptions while extracting range from selection

quote-selection 0.3.0

18 Sep 09:40
Compare
Choose a tag to compare
  • Export a subscribe method that returns a TC39 Subscription

  • Export quote, findContainer, findTextarea methods

  • Greatly improve data-quote-markdown mode

  • data-quote-markdown attribute can now specify a selector to scope the selection to

  • Add external flow definitions