Skip to content

markdown plugin: data-separator does not seem to have a default value. Should it have one? #2832

@dr-leo

Description

@dr-leo

Hi,

I am new to this excellent framework and stumbled upon what I consider a bug either in the markdown plugin or the docs or both.

The
docs state the following:

... in the external file: the data-separator attribute defines a regular expression for horizontal slides (defaults
to ^\r?\n---\r?\n$, ...

However, the code example for internal markdown, which does not define data-separator (thus allegedly relying on its default value) places all the text on the same slide.
Likewise, the examples/markdown.html file suggests that there is no default value for data-separator:

<!-- No "extra" slides, since there are no separators defined (so they'll become horizontal rulers) -->
                <section data-markdown>
                    <script type="text/template">
                        A

                        ---

                        B

                        ---

                        C
                    </script>
                </section>

Moreover, if there was a default value defined in the plugin, it should apply to internal MD as well, in which case the docs should make this clear (currently, they suggest that data-separator only influences the parsing of external MD).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions