Skip to content

🐛 Markdown tables within governance action metadata are poorly rendered #3581

@Ryun1

Description

@Ryun1

Area

Voting Pillar

Domain

gov.tools

Which wallet were you using?

No response

Context

  • Governance action authors are able to add markdown text styling to their governance action metadata
  • GovTool attempts to render this metadata in a nice way
  • Currently GovTool does not render markdown tables properly

see example
Image

from text of:

| Scope                                            | Owner    | Estimated effort | Resources already secured | Resources needed |\n| ---                                              | ---      | ---              | ---                       | ---              |\n| Ledger                                           | Matthias | 2.5 FTEs         | 1 FTE                     | 1.5 FTEs         |\n| Consensus                                        | Arnaud   | 2.5 FTEs         | 1 FTE                     | 1.5 FTEs         |\n| Networking                                       | Santiago | 1 FTE            | 1 FTE                     | 0 FTEs           |\n| Ad-hoc Mercenaries                               | Pi       | 2.5 FTEs         | 0 FTEs                    | 2.5 FTEs         |\n| Project Management, Public Relations & Marketing | Damien   | 0.5 FTEs         | 0 FTEs                    | 0.5 FTEs        |

this should be rendered as:

Scope Owner Estimated effort Resources already secured Resources needed
Ledger Matthias 2.5 FTEs 1 FTE 1.5 FTEs
Consensus Arnaud 2.5 FTEs 1 FTE 1.5 FTEs
Networking Santiago 1 FTE 1 FTE 0 FTEs
Project Management, Public Relations & Marketing Damien 0.5 FTEs 0 FTEs 0.5 FTEs

Steps to reproduce

visit https://preview.gov.tools/governance_actions/a5a65bbb5af1b58226e0bbcb19eb0a1961da6c7f5fd7e4d1a6a74bfd516c9cd9#0

Actual behavior

Table not rendered

Expected behavior

Table is rendered

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions