From 1dfe1d3d7ca5a14e78ce98c4fe16037027800589 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Tue, 11 Jul 2017 12:41:00 -0400 Subject: [PATCH] FIXED: Fix bug preventing matching of abbreviations and glossary items inside tight list items --- Sources/libMultiMarkdown/writer.c | 3 +++ tests/MMD6Tests/Abbreviations.html | 4 ++-- tests/MMD6Tests/Abbreviations.tex | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) 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} -- 2.40.0