Skip to content

docs write --markdown --append fails to insert tables: 'insert native table: table not found near index N' #592

Description

@sebsnyk

Version

gog 0.17.0 (Homebrew 2026-05-15T18:03:28Z)

Symptom

gog docs write <docId> --tab=X --file=Y --markdown --append fails when the appended markdown contains a table. Body content before the table is appended successfully, but the table itself is dropped with:

insert native table: table not found near index N

Reproduces both when the table is embedded in a larger markdown file and when it is the only content in the file.

Repro

cat > /tmp/table.md <<'TBL'
| API call | Type | Vuln class |
|---|---|---|
| HttpServletRequest.getParameter | SOURCE | XSS |
| HttpServletResponse.sendRedirect | SINK | open redirect |
TBL

gog docs write <docId> --tab=<tabName> --file=/tmp/table.md --markdown --append
# insert native table: table not found near index 7786

Expected

Table renders as a native Google Docs table (as it would in docs create --file --markdown).

Notes

Workaround

Convert tables to bullet/definition lists in source markdown before appending. Lossy, but content survives.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions