Skip to content

Problem when parsing topics #1

@gcalabria

Description

@gcalabria

I am trying to use your scripts (more specifically the function arqmath_post_read_html5_worker), but it does not correctly parses some strings. For example, the string

<p> ...which has the simple parametrization <span class="math-container" id="q_228">$$(x,y)=\\left(t^{1/t},t\\right),\\qquad0<t<\\infty.$$</span> Component 2 is a path between the points ... </p>

Should extract the formula: $$(x,y)= \left(t^{1/t},t\right), \qquad0 &lt; t &lt; \infty.$$ (which correspondes to the raw string $$(x,y)=\\left(t^{1/t},t\\right),\\qquad0<t<\\infty.$$

However, the resulting raw string is actually: $$(x,y)=\\left(t^{1/t},t\\right),\\qquad0$$

I suspect that this is happening, because of the < symbol inside the equation, which is actually being interpreted as the opening of an HTML tag.

Am I doing something wrong or this is indeed a bug?

I appreciate any help.

Cheers :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions