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

[lint plugins] Allow lint plugins to output HTML formatted messages #4861

Merged
merged 1 commit into from
Jul 18, 2017
Merged

[lint plugins] Allow lint plugins to output HTML formatted messages #4861

merged 1 commit into from
Jul 18, 2017

Conversation

nijel
Copy link
Contributor

@nijel nijel commented Jul 18, 2017

This is opt-in, the plugin needs to produce message_html instead of
message to be rendered as HTML.

We were using this with custom patch at phpMyAdmin, but I think it's better to integrate such feature upstream.

nijel added a commit to phpmyadmin/phpmyadmin that referenced this pull request Jul 18, 2017
- add patch to CodeMirror to render HTML, it's submitted upstream as
  codemirror/codemirror5#4861
- properly escape html output of Linter, now when we use full HTML

Fixes #13489

Signed-off-by: Michal Čihař <michal@cihar.com>
@marijnh
Copy link
Member

marijnh commented Jul 18, 2017

Looks good. Could you use messageHTML as a property name instead to make it follow the general capitalization style of the rest of the code?

This is opt-in, the plugin needs to produce message_html instead of
message to be rendered as HTML.
@nijel
Copy link
Contributor Author

nijel commented Jul 18, 2017

Good point, changed to messageHTML.

nijel added a commit to phpmyadmin/phpmyadmin that referenced this pull request Jul 18, 2017
See codemirror/codemirror5#4861

Signed-off-by: Michal Čihař <michal@cihar.com>
@marijnh marijnh merged commit 99c8d8b into codemirror:master Jul 18, 2017
@marijnh
Copy link
Member

marijnh commented Jul 18, 2017

Thank you. Merged!

@nijel nijel deleted the html-lint branch July 18, 2017 09:45
@nijel
Copy link
Contributor Author

nijel commented Jul 18, 2017

Thanks, that was fast!

This was referenced Apr 7, 2023
Closed
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.

None yet

2 participants