U
    ×Zßfá  ã                   @   s$   d dl mZmZ G dd„ deƒZdS )é    )Ú	ComponentÚ_explicitize_argsc                       s^   e Zd ZdZg ZdgZdZd Zede	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
f
‡ fdd„	ƒZ‡  ZS )ÚMarkdowna	  A Markdown component.
    A component that renders Markdown text as specified by the
    GitHub Markdown spec. These component uses
    [react-markdown](https://rexxars.github.io/react-markdown/) under the hood.

    Keyword arguments:

    - children (string | list of strings; optional):
        A markdown string (or array of strings) that adheres to the
        CommonMark spec.

    - id (string; optional):
        The ID of this component, used to identify dash components in
        callbacks. The ID needs to be unique across all of the components
        in an app.

    - className (string; optional):
        Class name of the container element.

    - dangerously_allow_html (boolean; default False):
        A boolean to control raw HTML escaping. Setting HTML from code is
        risky because it's easy to inadvertently expose your users to a
        cross-site scripting (XSS)
        (https://en.wikipedia.org/wiki/Cross-site_scripting) attack.

    - dedent (boolean; default True):
        Remove matching leading whitespace from all lines. Lines that are
        empty, or contain *only* whitespace, are ignored. Both spaces and
        tab characters are removed, but only if they match; we will not
        convert tabs to spaces or vice versa.

    - highlight_config (dict; optional):
        Config options for syntax highlighting.

        `highlight_config` is a dict with keys:

        - theme (a value equal to: 'dark', 'light'; optional):
            Color scheme; default 'light'.

    - link_target (string; optional):
        A string for the target attribute to use on links (such as
        "_blank").

    - loading_state (dict; optional):
        Object that holds the loading state object coming from
        dash-renderer.

        `loading_state` is a dict with keys:

        - component_name (string; optional):
            Holds the name of the component that is loading.

        - is_loading (boolean; optional):
            Determines if the component is loading or not.

        - prop_name (string; optional):
            Holds which property is loading.

    - mathjax (boolean; default False):
        If True, loads mathjax v3 (tex-svg) into the page and use it in
        the markdown.

    - style (dict; optional):
        User-defined inline styles for the rendered Markdown.ÚchildrenZdash_core_componentsNc              
      sŠ   ddddddddd	d
g
| _ g | _ddddddddd	d
g
| _g | _| d¡}tƒ ‰ ˆ  |¡ ‡ fdd„|D ƒ}tt| ƒj	f d|i|—Ž d S )Nr   ÚidÚ	classNameÚdangerously_allow_htmlÚdedentÚhighlight_configÚlink_targetÚloading_stateÚmathjaxÚstyleÚ_explicit_argsc                    s   i | ]}|d kr|ˆ | “qS )r   © )Ú.0Úk©Z_localsr   ú5/tmp/pip-unpacked-wheel-47crqvv_/dash/dcc/Markdown.pyÚ
<dictcomp>y   s       z%Markdown.__init__.<locals>.<dictcomp>)
Z_prop_namesZ_valid_wildcard_attributesZavailable_propertiesZavailable_wildcard_propertiesÚpopÚlocalsÚupdateÚsuperr   Ú__init__)Úselfr   r   r   r   r   r   r	   r
   r   r   Úkwargsr   Úargs©Ú	__class__r   r   r   M   s:    öö

zMarkdown.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Z_children_propsZ_base_nodesÚ
_namespaceÚ_typer   r   Ú	UNDEFINEDr   Ú__classcell__r   r   r   r   r      s"   Aõr   N)Zdash.development.base_componentr   r   r   r   r   r   r   Ú<module>   s   