Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package ghc-commonmark-extensions for
openSUSE:Factory checked in at 2026-11-17 17:17:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-commonmark-extensions (Old)
and /work/SRC/openSUSE:Factory/.ghc-commonmark-extensions.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-commonmark-extensions"
Tue Nov 17 17:17:03 2026 rev:21 rq:1397767 version:0.2.8
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-commonmark-extensions/ghc-commonmark-extensions.changes
2026-11-06 19:54:41.292920770 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-commonmark-extensions.new.1251/ghc-commonmark-extensions.changes
2026-11-17 17:19:00.849106587 +0100
@@ -1,0 +2,31 @@
+Wed Nov 11 04:11:20 UTC 2026 - Peter Simons <[email protected]>
+
+- Update commonmark-extensions to version 0.2.8.
+ ## 0.2.8
+
+ * Footnotes: don't add footnote list twice.
+ If footnoteSpec was included more than once in a SyntaxSpec
+ (e.g. `gfmExtensions <> footnoteSpec`, or `-x gfm -x footnotes`
+ on the command line), the addFootnoteList final parser ran more
+ than once, re-rendering every note and emitting a second
+ footnotes section. We now record in `counters` that the list has
+ been added and make subsequent runs no-ops.
+
+ * Replace duplicate block specs in place (#180). When several
+ block specs have the same blockType,
+ removeDuplicateBlockSpecs still keeps the first, but now puts
+ it in the position of the last. So an extension that
+ overrides a default spec (e.g. fancy_lists' ListItem) takes
+ the default's slot, instead of moving ahead of other
+ extensions' specs and of the remaining default specs. This
+ makes task_lists work regardless of whether it is combined
+ before or after fancy_lists, and it fixes thematic breaks
+ like `* * *` being parsed as nested lists when fancy_lists is
+ enabled.
+
+ * `delimsMatch`: disallow match for 1-length delims when there is
+ no single-delim contsructor defined (e.g., with strikeout) (#181).
+
+ * Math: respect TeX percent comments (Erik Demaine).
+
+-------------------------------------------------------------------
Old:
----
commonmark-extensions-0.2.7.3.tar.gz
New:
----
commonmark-extensions-0.2.8.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-commonmark-extensions.spec ++++++
--- /var/tmp/diff_new_pack.ZfHLs3/_old 2026-11-17 17:19:01.534135502 +0100
+++ /var/tmp/diff_new_pack.ZfHLs3/_new 2026-11-17 17:19:01.535135545 +0100
@@ -20,7 +20,7 @@
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 0.2.7.3
+Version: 0.2.8
Release: 0
Summary: Pure Haskell commonmark parser
License: BSD-3-Clause
++++++ commonmark-extensions-0.2.7.3.tar.gz ->
commonmark-extensions-0.2.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/commonmark-extensions-0.2.7.3/changelog.md
new/commonmark-extensions-0.2.8/changelog.md
--- old/commonmark-extensions-0.2.7.3/changelog.md 2001-09-09
03:46:40.000000000 +0200
+++ new/commonmark-extensions-0.2.8/changelog.md 2001-09-09
03:46:40.000000000 +0200
@@ -1,5 +1,32 @@
# Changelog for commonmark-extensions
+## 0.2.8
+
+ * Footnotes: don't add footnote list twice.
+ If footnoteSpec was included more than once in a SyntaxSpec
+ (e.g. `gfmExtensions <> footnoteSpec`, or `-x gfm -x footnotes`
+ on the command line), the addFootnoteList final parser ran more
+ than once, re-rendering every note and emitting a second
+ footnotes section. We now record in `counters` that the list has
+ been added and make subsequent runs no-ops.
+
+ * Replace duplicate block specs in place (#180). When several
+ block specs have the same blockType,
+ removeDuplicateBlockSpecs still keeps the first, but now puts
+ it in the position of the last. So an extension that
+ overrides a default spec (e.g. fancy_lists' ListItem) takes
+ the default's slot, instead of moving ahead of other
+ extensions' specs and of the remaining default specs. This
+ makes task_lists work regardless of whether it is combined
+ before or after fancy_lists, and it fixes thematic breaks
+ like `* * *` being parsed as nested lists when fancy_lists is
+ enabled.
+
+ * `delimsMatch`: disallow match for 1-length delims when there is
+ no single-delim contsructor defined (e.g., with strikeout) (#181).
+
+ * Math: respect TeX percent comments (Erik Demaine).
+
## 0.2.7.3
* Depend on commonmark 0.3.1, for the `getPrecedingTokType` export.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/commonmark-extensions-0.2.7.3/commonmark-extensions.cabal
new/commonmark-extensions-0.2.8/commonmark-extensions.cabal
--- old/commonmark-extensions-0.2.7.3/commonmark-extensions.cabal
2001-09-09 03:46:40.000000000 +0200
+++ new/commonmark-extensions-0.2.8/commonmark-extensions.cabal 2001-09-09
03:46:40.000000000 +0200
@@ -1,5 +1,5 @@
name: commonmark-extensions
-version: 0.2.7.3
+version: 0.2.8
synopsis: Pure Haskell commonmark parser.
description:
This library provides some useful extensions to core commonmark
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/commonmark-extensions-0.2.7.3/src/Commonmark/Extensions/Footnote.hs
new/commonmark-extensions-0.2.8/src/Commonmark/Extensions/Footnote.hs
--- old/commonmark-extensions-0.2.7.3/src/Commonmark/Extensions/Footnote.hs
2001-09-09 03:46:40.000000000 +0200
+++ new/commonmark-extensions-0.2.8/src/Commonmark/Extensions/Footnote.hs
2001-09-09 03:46:40.000000000 +0200
@@ -172,6 +172,24 @@
(Monad m, Typeable m, Typeable bl, HasFootnote il bl,
IsBlock il bl) => BlockParser m il bl bl
addFootnoteList = do
+ -- If footnoteSpec is included more than once in a SyntaxSpec,
+ -- this final parser will run more than once; only the first run
+ -- should produce a footnote list.
+ alreadyAdded <- M.member footnoteListKey . counters <$> getState
+ if alreadyAdded
+ then return mempty
+ else do
+ updateState $ \s -> s{ counters = M.insert footnoteListKey
+ (toDyn ()) (counters s) }
+ addFootnoteList'
+
+footnoteListKey :: Text
+footnoteListKey = "footnote:listAdded"
+
+addFootnoteList' :: forall m il bl.
+ (Monad m, Typeable m, Typeable bl, HasFootnote il bl,
+ IsBlock il bl) => BlockParser m il bl bl
+addFootnoteList' = do
rm <- referenceMap <$> getState
let keys = M.keys . unReferenceMap $ rm
let getNote key = lookupReference key rm :: Maybe (FootnoteDef bl m)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/commonmark-extensions-0.2.7.3/src/Commonmark/Extensions/Math.hs
new/commonmark-extensions-0.2.8/src/Commonmark/Extensions/Math.hs
--- old/commonmark-extensions-0.2.7.3/src/Commonmark/Extensions/Math.hs
2001-09-09 03:46:40.000000000 +0200
+++ new/commonmark-extensions-0.2.8/src/Commonmark/Extensions/Math.hs
2001-09-09 03:46:40.000000000 +0200
@@ -73,6 +73,11 @@
Symbol '\\' -> do
tk' <- anyTok
(tk :) . (tk' :) <$> pDollarsMath display n
+ Symbol '%' -> do
+ -- Preserve comments, including the newline, without interpreting
+ -- their braces, dollars, or backslashes.
+ comment <- restOfLine
+ (tk :) . (comment ++) <$> pDollarsMath display n
Symbol '{' -> (tk :) <$> pDollarsMath display (n+1)
Symbol '}' | n > 0 -> (tk :) <$> pDollarsMath display (n-1)
| otherwise -> mzero
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/commonmark-extensions-0.2.7.3/test/fancy_lists.md
new/commonmark-extensions-0.2.8/test/fancy_lists.md
--- old/commonmark-extensions-0.2.7.3/test/fancy_lists.md 2001-09-09
03:46:40.000000000 +0200
+++ new/commonmark-extensions-0.2.8/test/fancy_lists.md 2001-09-09
03:46:40.000000000 +0200
@@ -296,3 +296,15 @@
<li>a list</li>
</ol>
````````````````````````````````
+
+Thematic breaks take precedence over list items, as in
+standard commonmark (#180):
+
+```````````````````````````````` example
+* * *
+
+- - -
+.
+<hr />
+<hr />
+````````````````````````````````
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/commonmark-extensions-0.2.7.3/test/math.md
new/commonmark-extensions-0.2.8/test/math.md
--- old/commonmark-extensions-0.2.7.3/test/math.md 2001-09-09
03:46:40.000000000 +0200
+++ new/commonmark-extensions-0.2.8/test/math.md 2001-09-09
03:46:40.000000000 +0200
@@ -120,3 +120,174 @@
<p><span class="math display">\[1\]</span>2<span class="math
display">\[3\]</span></p>
<p><span class="math display">\[1{$$2$$}3\]</span></p>
````````````````````````````````
+
+## TeX comments
+
+Unescaped percent signs start comments through the next newline.
+Comment text is preserved, but its braces and dollars do not affect
+math boundaries. Escaped percent signs stay literal, and backslashes
+inside comments do not escape the newline.
+
+```````````````````````````````` example
+$a%$ ignored
++b$
+.
+<p><span class="math inline">\(a%$ ignored
++b\)</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+${a%} $
+b}$
+.
+<p><span class="math inline">\({a%} $
+b}\)</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+${a%{
+b}$
+.
+<p><span class="math inline">\({a%{
+b}\)</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$a\%$
+.
+<p><span class="math inline">\(a\%\)</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+${a\%}$
+.
+<p><span class="math inline">\({a\%}\)</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$a\%{b$c$}$
+.
+<p><span class="math inline">\(a\%{b$c$}\)</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$a\\%$
+b$
+.
+<p><span class="math inline">\(a\\%$
+b\)</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+${a\\%}
+b}$
+.
+<p><span class="math inline">\({a\\%}
+b}\)</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$a\\\%$
+.
+<p><span class="math inline">\(a\\\%\)</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$a%
+% } $ \
+b$
+.
+<p><span class="math inline">\(a%
+% } $ \
+b\)</span></p>
+````````````````````````````````
+
+A delimiter inside a final comment cannot close the equation.
+
+```````````````````````````````` example
+$a%$
+.
+<p>$a%$</p>
+````````````````````````````````
+
+```````````````````````````````` example
+$$a%$$ ignored
++b$$
+.
+<p><span class="math display">\[a%$$ ignored
++b\]</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$${a%} $$
+b}$$
+.
+<p><span class="math display">\[{a%} $$
+b}\]</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$${a%{
+b}$$
+.
+<p><span class="math display">\[{a%{
+b}\]</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$$a\%$$
+.
+<p><span class="math display">\[a\%\]</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$${a\%}$$
+.
+<p><span class="math display">\[{a\%}\]</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$$a\%{b$$c$$}$$
+.
+<p><span class="math display">\[a\%{b$$c$$}\]</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$$a\\%$$
+b$$
+.
+<p><span class="math display">\[a\\%$$
+b\]</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$${a\\%}
+b}$$
+.
+<p><span class="math display">\[{a\\%}
+b}\]</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$$a\\\%$$
+.
+<p><span class="math display">\[a\\\%\]</span></p>
+````````````````````````````````
+
+```````````````````````````````` example
+$$a%
+% } $$ \
+b$$
+.
+<p><span class="math display">\[a%
+% } $$ \
+b\]</span></p>
+````````````````````````````````
+
+A delimiter inside a final comment cannot close the equation.
+
+```````````````````````````````` example
+$$a%$$
+.
+<p>$$a%$$</p>
+````````````````````````````````
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/commonmark-extensions-0.2.7.3/test/strikethrough.md
new/commonmark-extensions-0.2.8/test/strikethrough.md
--- old/commonmark-extensions-0.2.7.3/test/strikethrough.md 2001-09-09
03:46:40.000000000 +0200
+++ new/commonmark-extensions-0.2.8/test/strikethrough.md 2001-09-09
03:46:40.000000000 +0200
@@ -48,3 +48,18 @@
````````````````````````````````
+
+Single tildes that can't produce strikethrough should not
+swallow intervening delimiters (#181):
+
+```````````````````````````````` example
+~4 **~75 GB.**
+.
+<p>~4 <strong>~75 GB.</strong></p>
+````````````````````````````````
+
+```````````````````````````````` example
+~~a~ ~b~~
+.
+<p><del>a~ ~b</del></p>
+````````````````````````````````
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/commonmark-extensions-0.2.7.3/test/test-commonmark-extensions.hs
new/commonmark-extensions-0.2.8/test/test-commonmark-extensions.hs
--- old/commonmark-extensions-0.2.7.3/test/test-commonmark-extensions.hs
2001-09-09 03:46:40.000000000 +0200
+++ new/commonmark-extensions-0.2.8/test/test-commonmark-extensions.hs
2001-09-09 03:46:40.000000000 +0200
@@ -34,12 +34,16 @@
, ("test/subscript.md", subscriptSpec)
, ("test/pipe_tables.md", pipeTableSpec)
, ("test/footnotes.md", footnoteSpec)
+ -- including the extension twice should be harmless:
+ , ("test/footnotes.md", footnoteSpec <> footnoteSpec)
, ("test/math.md", mathSpec)
, ("test/emoji.md", emojiSpec)
, ("test/autolinks.md", autolinkSpec)
, ("test/definition_lists.md", definitionListSpec)
, ("test/fancy_lists.md", fancyListSpec)
, ("test/task_lists.md", taskListSpec)
+ -- order should not matter (#180):
+ , ("test/task_lists.md", fancyListSpec <> taskListSpec)
, ("test/attributes.md", attributesSpec)
, ("test/raw_attribute.md", rawAttributeSpec)
, ("test/bracketed_spans.md", bracketedSpanSpec)