Table Code not rendering?

32 views
Skip to first unread message

Amanda Roy

unread,
Sep 19, 2024, 9:10:01 AM9/19/24
to gd2md-html
Hi there, 

Im not sure if anybody is on here anymore but when i have a table in my google doc, it doesn't seem like using docs to markdown sees that, the code I get in return doesn't have the table code in there. 

so when i paste the code into my wordpress site, it doesn't appear as a table.

is there something Im doing wrong, or something that docs to markdown doesn't do perhaps?

thank you

evbacher

unread,
Sep 19, 2024, 9:14:39 AM9/19/24
to gd2md-html
Hi Amanda,

Thanks for reporting this -- I just tried converting some tables in my test document, and it converted fine for both Markdown and HTML conversions. The output is an HTML table in either case, since Markdown table markup cannot handle much complexity in table layout.

Let me know if you're still experiencing this issue (and send me a link to a doc that demonstrates the issue -- View permission only is fine --- I can make a copy to test it).

Thanks,
Ed

Amanda Roy

unread,
Sep 19, 2024, 1:15:05 PM9/19/24
to gd2md-html
Hi there,


attached is a screenshot of when i select the copy and table, I don't see a <table> tag before the <tr> tag 

Screenshot 2024-09-19 at 9.55.57 AM.png

evbacher

unread,
Sep 19, 2024, 1:37:25 PM9/19/24
to gd2md-html
Hi Amanda,

Two things:
  1. You don't need to select the text if you're converting the whole document (though that shouldn't affect the conversion).
  2. When I convert a copy of that doc, I'm seeing the <table> tag:

    <h3>Skills</h3>

    <table>
      <tr>
       <td><strong>Foundational Skills</strong>
       </td>
       <td><strong>Specialized Skills</strong>
       </td>


    When you include the notes, what version are you seeing? The latest is 1.0β38. Here's what I'm seeing:

    Conversion notes:

    * Docs to Markdown version 1.0β38
    * Thu Sep 19 2024 10:31:24 GMT-0700 (PDT)

I'm not sure what could cause the <table> tag to disappear!

Ed

Ed Bacher

unread,
Sep 19, 2024, 2:34:25 PM9/19/24
to Amanda Roy, gd2md-html
Hi Amanda,

No, the selection shouldn't affect the conversion (unless you leave off part of the table).

But I'm glad you asked that question!
Just went and tried that: here's the selection (note that I didn't select past the end of the table):

And here's the result (top of the table markup is visible in the conversion):
image.png
If you select the entire table, it should work properly:
image.png

If you don't include the whole table, then Google Docs doesn't see the whole table container, so the first complete element it sees is the table row. It may be possible to extend a partial selection like this to the whole table, but for now, make sure to select beyond the end of the table.

This is a subtle issue, but I've filed a bug about it: https://github.com/evbacher/gd2md-html/issues/150.

Ed

Ed Bacher | ed.b...@gmail.com 


On Thu, Sep 19, 2024 at 1:40 PM Amanda Roy <ama...@vitaldesign.com> wrote:
Hi Ed,

I'm seeing this for conversion notes:
Conversion notes:

* Docs to Markdown version 1.0β38
* Thu Sep 19 2024 10:38:40 GMT-0700 (PDT)
* Source doc: Big Data Developer Qualifications: Skills, Education and Certifications [Skills, Education and Certifications]
* Tables are currently converted to HTML tables.

also I typically select the copy I want to translate because we have a template of information that doesn't need to be made into HTML in some other docs we use on my team, so often I just want to translate a specific portion of the doc to HTML, which is why I select what I need...do you think thats part of the issue?

Amanda Roy

Digital Marketing Coordinator Manager 

vital.
Website  |  Blog

Find vital. on: Facebook  |  Twitter  |  LinkedIn  


ATTENTION: All Vital email addresses have changed. Please update your saved contact information with our new email addresses that now end with @vitaldesign.com.



--
You received this message because you are subscribed to the Google Groups "gd2md-html" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gd2md-html+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gd2md-html/54902b02-dfe3-467b-92f5-2d6e72570a62n%40googlegroups.com.

evbacher

unread,
Sep 19, 2024, 2:43:00 PM9/19/24
to gd2md-html
I also added a bit to the docs:

Thanks again for pointing this out!
Ed

Amanda Roy

unread,
Sep 20, 2024, 4:03:29 PM9/20/24
to evbacher, gd2md-html
Hi Ed,

I'm seeing this for conversion notes:
Conversion notes:

* Docs to Markdown version 1.0β38
* Thu Sep 19 2024 10:38:40 GMT-0700 (PDT)
* Source doc: Big Data Developer Qualifications: Skills, Education and Certifications [Skills, Education and Certifications]
* Tables are currently converted to HTML tables.

also I typically select the copy I want to translate because we have a template of information that doesn't need to be made into HTML in some other docs we use on my team, so often I just want to translate a specific portion of the doc to HTML, which is why I select what I need...do you think thats part of the issue?

Amanda Roy

Digital Marketing Coordinator Manager 

vital.
Website  |  Blog

Find vital. on: Facebook  |  Twitter  |  LinkedIn  


ATTENTION: All Vital email addresses have changed. Please update your saved contact information with our new email addresses that now end with @vitaldesign.com.


On Thu, Sep 19, 2024 at 1:37 PM evbacher <ed.b...@gmail.com> wrote:
--
Reply all
Reply to author
Forward
0 new messages