Avaiga / taipy-gui

Graphical User Interface generator for Taipy
Apache License 2.0
60 stars 20 forks source link

BUG- Substituting a variable value in a markdown header doesn't work #477

Closed Dr-Irv closed 2 years ago

Dr-Irv commented 2 years ago

Description

If you want to use a markdown ## header and want the text to depend on a variable, it doesn't keep the font of the header for the substituted text.

How to reproduce A code fragment

from taipy import Gui

page = """
## Header <|{somevar}|>\
\n
Some text <|{somevar}|>
\n
"""

if __name__ == "__main__":
    somevar = "This should be bold in header, normal in text"
    Gui(page=page).run()

Expected behavior The text on the header line should all be in the same font

Screenshots image

Runtime environment Please specify relevant indications.

FredLL-Avaiga commented 2 years ago

Added a raw boolean property that forces the render to a simple <span>