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

Unescaped brackets in XHTML output #1

Open
namedgraph opened this issue Mar 1, 2023 · 2 comments
Open

Unescaped brackets in XHTML output #1

namedgraph opened this issue Mar 1, 2023 · 2 comments

Comments

@namedgraph
Copy link

namedgraph commented Mar 1, 2023

Hi,

I have Markdown that goes like this:

...the IRI *<http://www.example.com/my/2.0>* might be redirected to *<file:///usr/local/ontologies/imported.v20.owl>*.

which gets converted to the following XHTML:

...the IRI <em><a href="http://www.example.com/my/2.0">http://www.example.com/my/2.0</a></em> might be redirected to <em><file:///usr/local/ontologies/imported.v20.owl></em>.

Why is the http: link converted to <a> and file: is not?
In any case, raw brackets in <file:...> look like a bug to me -- they should be entity-escaped as &lt;file:...&gt;, otherwise the file is not well-formed XML.

@namedgraph namedgraph changed the title http: vs file: link conversion Unescaped brackets in XHTML output Mar 1, 2023
@namedgraph
Copy link
Author

Another example:

3. For every triple <s p o>, M(<s, p, o>)= <M(s), M(p), M(o)>;

becomes

<li>For every triple <s p o>, M(<s, p, o>)= <M(s), M(p), M(o)>;</li>

where it should be

<li>For every triple &lt;s p o&gt;, M(&lt;s, p, o&gt;)= &lt;M(s), M(p), M(o)&gt;;</li>

@namedgraph
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant