]> granicus.if.org Git - multimarkdown/commitdiff
FIXED: Fix bug preventing matching of abbreviations and glossary items inside tight...
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Tue, 11 Jul 2017 16:41:00 +0000 (12:41 -0400)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Tue, 11 Jul 2017 16:41:00 +0000 (12:41 -0400)
Sources/libMultiMarkdown/writer.c
tests/MMD6Tests/Abbreviations.html
tests/MMD6Tests/Abbreviations.tex

index ccf81eca12d62d62d593754b2453775d93db3378..def2acd4036f382d34cc30359c3c29847008902d 100644 (file)
@@ -69,6 +69,7 @@
 #include "memoir.h"
 #include "mmd.h"
 #include "opendocument-content.h"
+#include "parser.h"
 #include "scanners.h"
 #include "token.h"
 #include "uuid.h"
@@ -1656,6 +1657,8 @@ void automatic_search(mmd_engine * e, token * t, trie * ac) {
                        case BLOCK_TABLE_HEADER:
                        case BLOCK_TABLE_SECTION:
                        case BLOCK_TERM:
+                       case LINE_LIST_BULLETED:
+                       case LINE_LIST_ENUMERATED:
                        case PAIR_BRACKET:
                        case PAIR_BRACKET_FOOTNOTE:
                        case PAIR_BRACKET_GLOSSARY:
index c0d942ea8ac454c79227689e6434dcd4ba9e1776..d59159b46ec8034a28bddfd30dc3e67bbc8cafa7 100644 (file)
@@ -85,8 +85,8 @@
 <p><a href="#fn:2" id="fnref:2" title="see footnote" class="footnote"><sup>2</sup></a></p>
 
 <ul>
-<li>foo</li>
-<li>foo</li>
+<li><abbr title="FOO">foo</abbr></li>
+<li><abbr title="FOO">foo</abbr></li>
 <li><abbr title="FOO">foo</abbr></li>
 </ul>
 
index 501f833dde002f0978913f65d3f5970254932a08..b4caeed539a4e206f900eb63bffcc87d035ffd5e 100644 (file)
@@ -103,9 +103,9 @@ fo'o fo'o
 \footnote{foo and bar}
 
 \begin{itemize}
-\item{} foo
+\item{} \gls{foo}
 
-\item{} foo
+\item{} \gls{foo}
 
 \item{} \gls{foo}