Public bug reported:

I was experimenting with tables of different types (as documented at
http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html)
and I had a table like this:

                         Aug 20     Aug 19  
    -------------------- ---------  --------
    Dollar rate           176.100    176.100
    Trading volume (M$)      4.33       2.83
    Bids                     4.44       3.01
    Offers (M$)              4.33       2.83

This rendered fine, but for various reasons, I wanted to convert it to a
pipe_table:

    |                      | Aug 20  | Aug 19  |
    |:---------------------|--------:|--------:|
    | Dollar rate          | 176.100 | 176.100 |
    | Trading volume (M$)  |    4.33 |    2.83 |
    | Bids                 |    4.44 |    3.01 |
    | Offers (M$)          |    4.33 |    2.83 |

This does not render correctly -- I had to backslash-escape the dollar
signs to fix it.  I can guess how this happened, but this idiosyncratic
detail of LaTeX math mode formatting should arguably not leak through to
Pandoc (especially since you might want to render through something else
than LaTeX which handles the backslashed dollar signs differently).

I am attaching a simple test file in Markdown.  The command line I used
was the simplest imaginable, pandoc -o tndoc.pdf tndoc.md

I am only just beginning to learn to use Pandoc. If there is something
more I should be including for diagnostics, please let me know.

$ apt-cache policy pandoc
pandoc:
  Installed: 1.12.2.1-1build2
  Candidate: 1.12.2.1-1build2
  Version table:
 *** 1.12.2.1-1build2 0
        500 http://fi.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

$ lsb_release -rd
Description:    Ubuntu 14.04.1 LTS
Release:        14.04

** Affects: pandoc (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Simple Markdown file to deminstrate the problem"
   https://bugs.launchpad.net/bugs/1376113/+attachment/4221083/+files/tndoc.md

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1376113

Title:
  pipe_tables table with dollar signs needs to have them escaped

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pandoc/+bug/1376113/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to