* 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
[parent not found: <1f5e2447-795b-45d4-991b-ed5a55ea706c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: backslash-escaped leading space in markdown table treated as a literal backslash [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> 0 siblings, 1 reply; 4+ messages in thread From: John MacFarlane @ 2018-02-07 16:52 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw +++ John Muccigrosso [Feb 05 18 12:32 ]: > 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 This is because we strip trailing spaces before parsing the cell (that's not a new change). Note that if you have `\ a` in your cell, the escaped space will work; it's only at the end that it doesn't, and this mirrors how a paragraph ending in a `\` with no following space is treated. Are there real-world examples where you need the `\ ` in a cell with nothing else? ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20180207165257.GH88252-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>]
* Re: backslash-escaped leading space in markdown table treated as a literal backslash [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> 0 siblings, 1 reply; 4+ messages in thread From: John Muccigrosso @ 2018-02-07 21:37 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 907 bytes --] On Wednesday, February 7, 2018 at 11:53:13 AM UTC-5, John MacFarlane wrote: > > Are there real-world examples where you need the `\ ` in a > cell with nothing else? > I've been using it to generate html tables where the first cell in a row is empty. I can substitute of course, but using a \ seemed superior to using html. -- 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/f1c851a4-d1fd-4d2e-a881-d7ad76eb05d6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1478 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <f1c851a4-d1fd-4d2e-a881-d7ad76eb05d6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: backslash-escaped leading space in markdown table treated as a literal backslash [not found] ` <f1c851a4-d1fd-4d2e-a881-d7ad76eb05d6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-02-09 23:26 ` John Muccigrosso 0 siblings, 0 replies; 4+ messages in thread From: John Muccigrosso @ 2018-02-09 23:26 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 735 bytes --] Further thoughts? Should I just use the html in my markdown, or is there a markdown-y way to do it? I would have thought an empty leading cell was not uncommon. -- 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/fa805c26-2afe-401d-9425-d404628c51b9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1145 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).