Releases: github/quote-selection
0.8.2
v0.8.1
quote-selection 0.8.0
-
BREAKING: Install with options rather than consulting the
data-quote-markdownHTML 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 withincontainer. If your app uses thedata-quote-markdownattribute, 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-markdownevent now gets fired on the container element and publishes a reference tofragmentwhich 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
- Ensure that
changeevent is fired after changing textarea value
0.5.1
quote-selection 0.5.0
-
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
- On browser copy action, put Markdown representation of the selected text to clipboard
quote-selection 0.3.1
- Ignore exceptions while extracting range from selection
quote-selection 0.3.0
-
Export a
subscribemethod that returns a TC39 Subscription -
Export
quote,findContainer,findTextareamethods -
Greatly improve
data-quote-markdownmode -
data-quote-markdownattribute can now specify a selector to scope the selection to -
Add external flow definitions