Skip to content

HTML tags are ignored with jslink #4318

@pat-schmitt

Description

@pat-schmitt

ALL software version info

panel 0.14.2

Description of expected behaviour and the observed behaviour

The markdown object is ignoring the HTML tag <b> when updated with jslink. The example below is from the panel documentation https://panel.holoviz.org/user_guide/Links.html#linking-using-custom-js-code.

Sorry for crossposting, but here I opened a related issue for Holoviews: holoviz/holoviews#5590

Complete, minimal, self-contained example code that reproduces the issue

import panel as pn
pn.extension()

markdown = pn.pane.Markdown("<b>Markdown display</b>", width=400)
text_input = pn.widgets.TextInput(value="Markdown display")

code = '''
    target.text = '<b>' + source.value + '</b>'
'''
link = text_input.jslink(markdown, code={'value': code})

pn.Row(text_input, markdown)

Screenshots or screencasts of the bug in action

showcase.mp4

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions