public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* backslash-escaped leading space in markdown table treated as a literal backslash
@ 2018-02-05 20:32 John Muccigrosso
       [not found] ` <1f5e2447-795b-45d4-991b-ed5a55ea706c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: John Muccigrosso @ 2018-02-05 20:32 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1487 bytes --]

I think this is a relatively recent regression. `\ ` at the start of a line 
normally gets treated as a space:

> pandoc
one

\ two

three
<p>one</p>
<p> two</p>
<p>three</p>

But if it's in a table, it gets preserved now. HTML below:

> pandoc
one | one
----|---
two | two
\   | three
<table>
<thead>
<tr class="header">
<th>one</th>
<th>one</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>two</td>
<td>two</td>
</tr>
<tr class="even">
<td>\</td>
<td>three</td>
</tr>
</tbody>
</table>

Native output looks like this:

[Table [] [AlignDefault,AlignDefault] [0.0,0.0]
 [[Plain [Str "one"]]
 ,[Plain [Str "one"]]]
 [[[Plain [Str "two"]]
  ,[Plain [Str "two"]]]
 ,[[Plain [Str "\\"]]
  ,[Plain [Str "three"]]]]]

Versus this for the non-table version:

[Para [Str "one"]
,Para [Str "\160two"]
,Para [Str "three"]]


This has only started recently. I noticed it today in a document I last 
processed in October 2017.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1f5e2447-795b-45d4-991b-ed5a55ea706c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 10847 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-02-09 23:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 20:32 backslash-escaped leading space in markdown table treated as a literal backslash John Muccigrosso
     [not found] ` <1f5e2447-795b-45d4-991b-ed5a55ea706c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-02-07 16:52   ` John MacFarlane
     [not found]     ` <20180207165257.GH88252-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2018-02-07 21:37       ` John Muccigrosso
     [not found]         ` <f1c851a4-d1fd-4d2e-a881-d7ad76eb05d6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-02-09 23:26           ` John Muccigrosso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).