How to create a Creole table without a bolded first row?

0 votes
asked Mar 2, 2020 in Question / help by Brett

Hi PlantUML community,

I want to draw a table with different background colours (and multiple columns, sometimes). I can do this with Creole syntax inside a shape, like this:

@startuml
note as deepCSS
  |<#white> Husky / Yorkie |
  |<#gainsboro> SourceTree |
endnote

@enduml

The problem is that the text in the first row of every Creole table is given bold-formatting automatically. I think the relevant source code is here

Is there a way to not have bolded-text on the first row of a table?

1 Answer

0 votes
answered Mar 6, 2020 by plantuml (295,000 points)
 
Best answer

Somehow, this is a bug.

So we've just fixed this in last beta http://beta.plantuml.net/plantuml.jar

Here is an example of what you can get now. The documentation is not up to date :

@startuml
note as deepCSS0
  |<#white> Husky / Yorkie |
  |<#gainsboro> SourceTree0 |
endnote

note as deepCSS1
  |= <#white> Husky / Yorkie |= Foo |
  |<#gainsboro><r> SourceTree1 | foo1 |
endnote

note as deepCSS2
  |= Husky / Yorkie |
  |<#gainsboro> SourceTree2 |
endnote

note as deepCSS3
  <#white>|= Husky / Yorkie |= Foo |
  |<#gainsboro> SourceTree1 | foo1 |
endnote
@enduml

We are not 100% satisfied with the table syntax for creole. We are wondering if we should not also allow other wiki's syntax to have better table. Any suggestions is welcome :-)

Thanks !

...