From bd5818c52a0fd5f77dceab04f9a208b4100ab2f4 Mon Sep 17 00:00:00 2001 From: Nicolas Porcel Date: Thu, 24 Nov 2016 15:32:24 +0100 Subject: Force word wrapping in code tags For instance, if you try to compile the following markdown code with pandoc (using 1.12): ``` markdown Page 1 ------ This is a very long code line that will appear on every slide even on page three Page 2 ------ My content Page 3 ------ My last content ``` using this command: pandoc -s -t dzslides test.md -o /tmp/test.html the long code line will appear on every slide. Using pre-wrap fixes the problem by forcing word wrap of code. The only drawback is that it requires IE 8 [according to MDN](https://developer.mozilla.org/fr/docs/Web/CSS/white-space), which make it less compatible. A workaround it to wrap the code when writing it, but if you consider inline code tags using the accents \`\` in markdown this is not possible. --- default.dzslides | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.dzslides b/default.dzslides index c8c249030..97d518931 100644 --- a/default.dzslides +++ b/default.dzslides @@ -12,7 +12,7 @@ $if(keywords)$ $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ - + $if(quotes)$ $endif$ -- cgit v1.2.3