Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 77b9e18

Browse files
Version bump to 0.40.6 and rebuild bundles (#416)
* Version bump to 0.40.6 and rebuild bundles * Bump to 0.41.0 instead
1 parent 7815269 commit 77b9e18

10 files changed

+29809
-32280
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [0.41.0] - 2018-12-11
6+
### Added
7+
- `dangerously_allow_html` prop for Markdown component for allowing HTML.
8+
59
## [0.40.5] - 2018-12-11
610
### Fixed
711
- Fix typos in DatePickerSingle props [#361](https://github.com/plotly/dash-core-components/pull/361)

dash_core_components/Markdown.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@ class Markdown(Component):
1414
- className (string; optional): Class name of the container element
1515
- containerProps (dict; optional): An object containing custom element props to put on the container
1616
element such as id or style
17+
- dangerously_allow_html (boolean; optional): A boolean to control raw HTML escaping.
18+
Setting HTML from code is risky because it's easy to
19+
inadvertently expose your users to a cross-site scripting (XSS)
20+
(https://en.wikipedia.org/wiki/Cross-site_scripting) attack.
1721
1822
Available events: """
1923
@_explicitize_args
20-
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, containerProps=Component.UNDEFINED, **kwargs):
21-
self._prop_names = ['children', 'id', 'className', 'containerProps']
24+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, containerProps=Component.UNDEFINED, dangerously_allow_html=Component.UNDEFINED, **kwargs):
25+
self._prop_names = ['children', 'id', 'className', 'containerProps', 'dangerously_allow_html']
2226
self._type = 'Markdown'
2327
self._namespace = 'dash_core_components'
2428
self._valid_wildcard_attributes = []
2529
self.available_events = []
26-
self.available_properties = ['children', 'id', 'className', 'containerProps']
30+
self.available_properties = ['children', 'id', 'className', 'containerProps', 'dangerously_allow_html']
2731
self.available_wildcard_properties = []
2832

2933
_explicit_args = kwargs.pop('_explicit_args')

0 commit comments

Comments
 (0)