From 2904d1342011b8b5e467f0eb0b1bd110f9a76c05 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 28 Nov 2019 20:22:40 +1100 Subject: Add a {\} marker to disable markup processing --- src/display_buffer.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/display_buffer.cc') diff --git a/src/display_buffer.cc b/src/display_buffer.cc index e7e2da54..7df0aa1e 100644 --- a/src/display_buffer.cc +++ b/src/display_buffer.cc @@ -280,6 +280,11 @@ DisplayLine parse_display_line(StringView line, const FaceRegistry& faces, const // closing is now at the first char of "}}", advance it to the second ++closing; } + else if (closing == it+2 and *(it+1) == '\\') + { + pos = closing + 1; + break; + } else face = faces[{it+1, closing}]; it = closing; -- cgit v1.2.3