Skip to content

Markdown: missing bold and italic text style support #44

@IKupriyanov-HORIS

Description

@IKupriyanov-HORIS
letsPlot(AutoMpg.map()) +
                geomPoint(size=8, tooltips = layerTooltips().line("@{vehicle name}")) { x="engine displacement (cu. inches)"; y="miles per gallon"; color="number of cylinders" }  +
                scaleColorManual(listOf("#66c2a5", "#fc8d62", "#8da0cb"), guide="none")  +

                // Enable Markdown in all titles
                theme(title=elementMarkdown()) +

                // Adjust style of title and subtitle
                theme(plotTitle=elementText(size=30, family="Georgia", hjust=0.5),
                    plotSubtitle=elementText(family="Georgia", hjust=0.5)) +

                labs(

                    // Span styling, mixing style and emphasis
                    title=
                        """<span style="color:#66c2a5">**4**</span>, """ +
                                """<span style="color:#8da0cb">**6**</span> and """ +
                                """<span style="color:#fc8d62">**8**</span> cylinders""",

                    // Simple emphasis
                    subtitle="**City milage** *vs* **displacement**",

                    // multiline caption, multiline style span, links
                    caption="<span style='color:grey'>" +
                            "Powered by <a href='https://lets-plot.org'>Lets-Plot</a>.  \n" +
                            "Visit the <a href='https://github.com/jetbrains/lets-plot/issues'>issue tracker</a> for feedback." +
                            "</span>",

                    // Axis titles
                    x="Displacement (***inches***)",
                    y="Miles per gallon (***cty***)"
                )

Actual:

Image

Expected:

Image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions