Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underscores in XML #72

Closed
higginbg opened this issue Jul 19, 2017 · 4 comments
Closed

Underscores in XML #72

higginbg opened this issue Jul 19, 2017 · 4 comments
Assignees
Labels
Bug EnlighterJS v2 legacy EnlighterJS (based on MooTools Framework)

Comments

@higginbg
Copy link

higginbg commented Jul 19, 2017

Hello,

It appears that underscores mess up the formatting in XML. Here is the code:

    <lesson>
        <title>Hindsight is 20/20</title>
        <grade target="5" lowerbound="3" upperbound="6"/>
        <time total="50" unit="minutes"/>
        <lesson_cost amount="0" unit="USDollars"/>
        <summary>Students measure their eyesight and learn how lenses can enhance eyesight`
        </summary>
        <keywords>
            <keyword>eyesight</keyword>
            <keyword>vision</keyword>
            <keyword>20/20</keyword>
        </keywords>
        <edu_standards>
            <edu_standard identifier="14000"/>
            <edu_standard identifier="14011"/>
        </edu_standards>
        <lesson_body>With our eyes we see the world around us. Having two eyes helps us see a larger area than just one eye and with two eyes we can... etc. etc.
        </lesson_body>
        <copyright owner="We, the legal owners of this document" year="2016" />
    </lesson>

And a screenshot:

capture

Any ideas for a fix?

@AndiDittrich AndiDittrich added Bug EnlighterJS v2 legacy EnlighterJS (based on MooTools Framework) labels Jul 20, 2017
@AndiDittrich
Copy link
Member

Hi
thanks for your report! it was a bug within EnlighterJS XML tokenizer/highlighting rules. it is fixed within the current release v2.11.1

Example: https://enlighterjs.org/Language.XML.html

br, Andi

@AndiDittrich
Copy link
Member

Updated EnlighterJS package to v2.11.1

@higginbg
Copy link
Author

Thanks for the quick reply!

Is this true for the WordPress plugin? I have Enlighter Version 3.4 on WordPress (which I believe is most current), but it's still having this issue.

@AndiDittrich
Copy link
Member

3.5 is not released yet ;) please use the master branch on GitHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug EnlighterJS v2 legacy EnlighterJS (based on MooTools Framework)
Projects
None yet
Development

No branches or pull requests

2 participants