]> granicus.if.org Git - multimarkdown/commitdiff
FIXED: Fix issue where tight list items not properly processed for smart typography
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Sat, 17 Jun 2017 22:12:30 +0000 (18:12 -0400)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Sat, 17 Jun 2017 22:12:30 +0000 (18:12 -0400)
Sources/libMultiMarkdown/mmd.c
tests/MMD6Tests/Smart Quotes.fodt
tests/MMD6Tests/Smart Quotes.html
tests/MMD6Tests/Smart Quotes.htmlc
tests/MMD6Tests/Smart Quotes.tex
tests/MMD6Tests/Smart Quotes.text

index 9e2c7947f3faaf27ba090c787749424cbe6d3905..84db1727b50af13796852e0479e8a07e0934cc63 100644 (file)
@@ -1087,6 +1087,8 @@ void mmd_assign_ambidextrous_tokens_in_block(mmd_engine * e, token * block, size
                        case BLOCK_SETEXT_2:
                        case BLOCK_TABLE:
                        case BLOCK_TERM:
+                       case LINE_LIST_BULLETED:
+                       case LINE_LIST_ENUMERATED:
                                // Assign child tokens of blocks
                                mmd_assign_ambidextrous_tokens_in_block(e, t, start_offset);
                                break;
index 3d59ff8f25c1d572c6e99ecb8f1d9d53f985fbdb..bc649afe6d2eee0e3ae6fa2615029c805828e33f 100644 (file)
 <text:p text:style-name="Standard">foo(&#8216;bar&#8217;)</text:p>
 
 <text:p text:style-name="Standard">foo(&#8220;bar&#8221;)</text:p>
+
+<text:p text:style-name="Standard">foo-bar</text:p>
+
+<text:list text:style-name="L1">
+<text:list-item>
+<text:p text:style-name="P1">
+foo-bar</text:p></text:list-item>
+
+<text:list-item>
+<text:p text:style-name="Standard">foo-bar</text:p></text:list-item>
+
+</text:list>
 </office:text>
 </office:body>
 </office:document>
index db157d9c684b815c7b88ec16bff946cfeb15b6c3..bcb6de53e49419d69f7a05bfb901e6f01e08a3e3 100644 (file)
 
 <p>foo(&#8220;bar&#8221;)</p>
 
+<p>foo-bar</p>
+
+<ul>
+<li>foo-bar</li>
+<li>foo-bar</li>
+</ul>
+
 </body>
 </html>
 
index 104dafbddf1421268589a5fe3d28b3004f212fc5..84660d7f2fa30c7f459f44e84ea9e8441b3b0705 100644 (file)
@@ -76,3 +76,10 @@ latex config:        article</p>
 <p>foo('bar')</p>
 
 <p>foo(&quot;bar&quot;)</p>
+
+<p>foo-bar</p>
+
+<ul>
+<li>foo-bar</li>
+<li>foo-bar</li>
+</ul>
index 47d380007d963bbe77322efc7c18746b78ccce33..d378c26f04c934a2cf4b0a618a8e0e048f9b3429 100644 (file)
@@ -78,5 +78,14 @@ foo(`bar')
 
 foo(``bar'')
 
+foo-bar
+
+\begin{itemize}
+\item{} foo-bar
+
+\item{} foo-bar
+
+\end{itemize}
+
 \input{mmd6-article-footer}
 \end{document}
index c94227d1001bc345162ff5b42f16382a7050a973..d6067b3128af5171745d8d9fd8cac2b747155ccf 100644 (file)
@@ -76,3 +76,8 @@ foo's and bar's
 foo('bar')
 
 foo("bar")
+
+foo-bar
+
+* foo-bar
+* foo-bar