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

Ambiguous guess: can't decide between ["xml", "html"] occurs for specific xml code #878

Closed
chenhengjie123 opened this issue Mar 3, 2018 · 1 comment

Comments

@chenhengjie123
Copy link

I'm using rouge to render markdown. But I met error Ambiguous guess: can't decide between ["xml", "html"] while the markdown content is as below in a markdown code block (```):

<?xml version="1.0" ?>
     <jacoco:report>
      ...
          <html destdir="${reportfolderPath}" encoding="utf-8" />         
          <xml destfile="${reportfolderPath}/jacoco_report.xml" encoding="utf-8" />
    </jacoco:report>

Codes above are part of xml for an ant build.xml file for jacoco (/~https://github.com/jacoco/jacoco/blob/master/org.jacoco.examples/build/build.xml). It's pure xml code and should be detected as xml language.

@miparnisari
Copy link
Contributor

@chenhengjie123 submitted a PR for this :)

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

2 participants