Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#60917 closed enhancement (fixed)

Enable reStructuredText in Trac

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: trac Version:
Keywords: Cc:
Port:

Description

Can reStructuredText support be enabled in our Trac installation?

trac:WikiRestructuredText

Its table syntax might be preferable to Trac's builtin syntax in some cases, like on wiki:Mirrors where row spanning isn't working quite right.

Change History (5)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Here's an example which currently renders the source but should render a table if rst were enabled:

Header 1 Header 2 Header 3
body row 1 column 2 column 3
body row 2 RestructuredText
body row 3 Cells may span rows.
  • Cells
  • contain
  • blocks.
body row 4

comment:2 Changed 4 years ago by neverpanic (Clemens Lang)

Owner: changed from admin@… to neverpanic
Status: newaccepted

comment:3 Changed 4 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: acceptedclosed

comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Thanks.

I wish that tables created with WikiRestructuredText:

rST table

would have the same default appearance as tables created with WikiFormatting:

wiki table

rST tables get the class "docutils" while other tables get the class "wiki". Is there any configuration option where they would both get the same class?

Also, rST tables are inside two unnecessary divs as compared with wiki tables, one of which causes undesired indentation. I don't suppose there's any way to avoid those divs...

comment:5 Changed 4 years ago by neverpanic (Clemens Lang)

There's no simple way for us to avoid the divs. As for the formatting, I guess we could ship additional CSS that would adapt the formatting to match. I have not looked into how this would be done for trac. It may be possible to add the required rules to /chrome/site/style.css.

Note: See TracTickets for help on using tickets.