From: Fletcher T. Penney Date: Tue, 11 Jul 2017 16:41:00 +0000 (-0400) Subject: FIXED: Fix bug preventing matching of abbreviations and glossary items inside tight... X-Git-Tag: 6.2.0^2~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1dfe1d3d7ca5a14e78ce98c4fe16037027800589;p=multimarkdown FIXED: Fix bug preventing matching of abbreviations and glossary items inside tight list items --- diff --git a/Sources/libMultiMarkdown/writer.c b/Sources/libMultiMarkdown/writer.c index ccf81ec..def2acd 100644 --- a/Sources/libMultiMarkdown/writer.c +++ b/Sources/libMultiMarkdown/writer.c @@ -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: diff --git a/tests/MMD6Tests/Abbreviations.html b/tests/MMD6Tests/Abbreviations.html index c0d942e..d59159b 100644 --- a/tests/MMD6Tests/Abbreviations.html +++ b/tests/MMD6Tests/Abbreviations.html @@ -85,8 +85,8 @@

2

diff --git a/tests/MMD6Tests/Abbreviations.tex b/tests/MMD6Tests/Abbreviations.tex index 501f833..b4caeed 100644 --- a/tests/MMD6Tests/Abbreviations.tex +++ b/tests/MMD6Tests/Abbreviations.tex @@ -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}