public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Tables: Why does two digit number become code?
@ 2018-08-02 19:35 Joseph Reagle
       [not found] ` <9e6da394-975e-152b-08c1-2b9c515e8315-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph Reagle @ 2018-08-02 19:35 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


Why does 60 get rendered as pre/code, but not the other numbers?

http://pandoc.org/try/?text=%2B---------%2B-----------%2B--------%2B--------%2B--------%2B----%2B%0A%7C+general+%7C++specific+%7C+ISO800+%7C+ISO400+%7C+ISO200+%7C+F++%7C%0A%2B%3D%3D%3D%3D%3D%3D%3D%3D%3D%2B%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%2B%3D%3D%3D%3D%3D%3D%3D%3D%2B%3D%3D%3D%3D%3D%3D%3D%3D%2B%3D%3D%3D%3D%3D%3D%3D%3D%2B%3D%3D%3D%3D%2B%0A%7C+CRUDDY++%7C+rainy+day+%7C++++250+%7C++++125+%7C+++++60+%7C+f4+%7C%0A%2B---------%2B-----------%2B--------%2B--------%2B--------%2B----%2B%0A&from=markdown&to=html5

```
+---------+-----------+--------+--------+--------+----+
| general |  specific | ISO800 | ISO400 | ISO200 | F  |
+=========+===========+========+========+========+====+
| CRUDDY  | rainy day |    250 |    125 |     60 | f4 |
+---------+-----------+--------+--------+--------+----+
```


```
<table style="width:68%;">
<colgroup>
<col style="width: 12%" />
<col style="width: 15%" />
<col style="width: 11%" />
<col style="width: 11%" />
<col style="width: 11%" />
<col style="width: 6%" />
</colgroup>
<thead>
<tr class="header">
<th>general</th>
<th>specific</th>
<th>ISO800</th>
<th>ISO400</th>
<th>ISO200</th>
<th>F</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>CRUDDY</td>
<td>rainy day</td>
<td>250</td>
<td>125</td>
<td><pre><code>60</code></pre></td>
<td>f4</td>
</tr>
</tbody>
</table>
```

-- 
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/9e6da394-975e-152b-08c1-2b9c515e8315%40reagle.org.
For more options, visit https://groups.google.com/d/optout.


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

* Re: Tables: Why does two digit number become code?
       [not found] ` <9e6da394-975e-152b-08c1-2b9c515e8315-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
@ 2018-08-02 21:12   ` John MacFarlane
       [not found]     ` <yh480k1sbgh3qx.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2018-08-02 21:12 UTC (permalink / raw)
  To: Joseph Reagle, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


Because there's a 4-space indent (not counting the
first space which is treated as padding).  Remember,
the contents of the grid cells are parsed as markdown
blocks.


Joseph Reagle <joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> writes:

> Why does 60 get rendered as pre/code, but not the other numbers?
>
> http://pandoc.org/try/?text=%2B---------%2B-----------%2B--------%2B--------%2B--------%2B----%2B%0A%7C+general+%7C++specific+%7C+ISO800+%7C+ISO400+%7C+ISO200+%7C+F++%7C%0A%2B%3D%3D%3D%3D%3D%3D%3D%3D%3D%2B%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%2B%3D%3D%3D%3D%3D%3D%3D%3D%2B%3D%3D%3D%3D%3D%3D%3D%3D%2B%3D%3D%3D%3D%3D%3D%3D%3D%2B%3D%3D%3D%3D%2B%0A%7C+CRUDDY++%7C+rainy+day+%7C++++250+%7C++++125+%7C+++++60+%7C+f4+%7C%0A%2B---------%2B-----------%2B--------%2B--------%2B--------%2B----%2B%0A&from=markdown&to=html5
>
> ```
> +---------+-----------+--------+--------+--------+----+
> | general |  specific | ISO800 | ISO400 | ISO200 | F  |
> +=========+===========+========+========+========+====+
> | CRUDDY  | rainy day |    250 |    125 |     60 | f4 |
> +---------+-----------+--------+--------+--------+----+
> ```
>
>
> ```
> <table style="width:68%;">
> <colgroup>
> <col style="width: 12%" />
> <col style="width: 15%" />
> <col style="width: 11%" />
> <col style="width: 11%" />
> <col style="width: 11%" />
> <col style="width: 6%" />
> </colgroup>
> <thead>
> <tr class="header">
> <th>general</th>
> <th>specific</th>
> <th>ISO800</th>
> <th>ISO400</th>
> <th>ISO200</th>
> <th>F</th>
> </tr>
> </thead>
> <tbody>
> <tr class="odd">
> <td>CRUDDY</td>
> <td>rainy day</td>
> <td>250</td>
> <td>125</td>
> <td><pre><code>60</code></pre></td>
> <td>f4</td>
> </tr>
> </tbody>
> </table>
> ```
>
> -- 
> 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/9e6da394-975e-152b-08c1-2b9c515e8315%40reagle.org.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/yh480k1sbgh3qx.fsf%40johnmacfarlane.net.
For more options, visit https://groups.google.com/d/optout.


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

* Re: Tables: Why does two digit number become code?
       [not found]     ` <yh480k1sbgh3qx.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2018-08-03 13:18       ` Joseph Reagle
  0 siblings, 0 replies; 3+ messages in thread
From: Joseph Reagle @ 2018-08-03 13:18 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On 8/2/18 5:12 PM, John MacFarlane wrote:
> Because there's a 4-space indent (not counting the
> first space which is treated as padding).  Remember,
> the contents of the grid cells are parsed as markdown
> blocks.

Ah, of course, thanks. 

This leads be to a bit of a problem with Sublime Text's table editor though. I can tell it not to automatically right align number cells [1].

[1]: https://github.com/vkocubinsky/SublimeTableEditor

```
{

    "table_editor_align_number_right": false
}
```

However, should I want to align those numbers back to the right for presentation with pandoc, there's a bug [2]. The table editor doesn't work with grid table alignment and the dev no longer maintains the plugin [2].

[2]: https://github.com/vkocubinsky/SublimeTableEditor/issues/64

Sometimes I can use a simple table (where ST's alignment works fine) but I do like grid tables... Maybe there's a work-a-round...


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

end of thread, other threads:[~2018-08-03 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-02 19:35 Tables: Why does two digit number become code? Joseph Reagle
     [not found] ` <9e6da394-975e-152b-08c1-2b9c515e8315-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2018-08-02 21:12   ` John MacFarlane
     [not found]     ` <yh480k1sbgh3qx.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-08-03 13:18       ` Joseph Reagle

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).