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.