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

Fix #403: Unescaped Chars in XML Comments (2nd try) #408

Merged
merged 1 commit into from
Apr 11, 2021

Conversation

Booksbaum
Copy link
Contributor

Previous fix escaped chars before converting markdown/jsdoc into xml.
That included a test for xml tag (-> simple summary doesn't need a
<summary> tag -> doesn't need escaping).
In Combination with an incorrect test, that resulted in < and & not
beeing escaped most of the time.

Additional: > gets escaped too. &lt;tag> just looks to strange. But
disadvantage: Start of Markdown Quote (> ...) or arrow (->) look
strange in xml doc comment code (-&gt;, &gt; some quote).

Previous fix escaped chars before converting markdown/jsdoc into xml.
That included a test for xml tag (-> simple summary doesn't need a
`<summary>` tag -> doesn't need escaping).
In Combination with an incorrect test, that resulted in `<` and `&` not
beeing escaped most of the time.

Additional: `>` gets escaped too. `&lt;tag>` just looks to strange. But
disadvantage: Start of Markdown Quote (`> ...`) or arrow (`->`) looks
strange in xml doc comment code.
@Booksbaum Booksbaum merged commit 751d7a5 into fable-compiler:master Apr 11, 2021
@Booksbaum Booksbaum deleted the escape-xml-comments branch April 11, 2021 15:22
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

Successfully merging this pull request may close these issues.

1 participant