Skip to main content

BBCodeRendererTablePreferred

ClassSource

BBCodeRendererTablePreferred(configs: BBCodeConfig | None = None)

The BBCode renderer with table format preferred.

This renderer variant will use the table format when rendering:

  • unordered lists
  • ordered lists

Such rendering conversions were used when writing reviews previously because the lists were not correctly rendered before.

However, since the Steam major update in 2026, the table is now rendered incorrectly. Therefore, currently, it is better to use BBCodeRendererForReview or BBCodeRendererListPreferred.

Arguments​

Initialization function is not specified.

Methods​

render_list​

v_1: str = self.render_list(node: ListNode)

Specific rendering. Render the ordered or unordered list.

Requires​

NameTypeRequired
Description
nodeListNodeThe list to be rendered.

Returns​

NameType
Description
v_1strThe rendered list bbcode.

render_list_item​

v_1: str = self.render_list_item(
node: ListItemNode, idx: int, parent_node: ListNode | None = None
)

Specific renderring. Render the list item.

Requires​

NameTypeRequired
Description
nodeListItemNodeThe list item to be rendered.
idxintThe optional argument idx is the current index of the item in the list.
parent_nodeListNode | NoneThe optional parent_node is the nearest unordered/ordered list wrapper of this item.

Returns​

NameType
Description
v_1strThe rendered list item bbcode.