-
Notifications
You must be signed in to change notification settings - Fork 357
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
feature(highlight): enhancements and code-health. #277
Conversation
…f the content so content new lines arent removed
…Sanitizer to prevent XSS issues.
…tent dynamically.
…y default in covalent-highlight-theme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}); | ||
}))); | ||
|
||
it('should render cpde from dynamic content', async(inject([], () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: cpde
@@ -20,7 +20,7 @@ By default, `--dev` build will log the following message in the console to let y | |||
|
|||
This component can be installed as npm package. | |||
|
|||
```npm | |||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this works on windows also? should this say bash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bash
is the language used to apply color theme in GitHub
LGTM! |
Description
Major enhancements, initial unit tests and XSS protection.
What's included?
[content]
input to load code content dynamically.highlight.js
theme.VS Dark+
theme as closely as possible when importingcovalent-highlight-theme
.Renderer
to limit access to native DOM andDomSanitizer
to preventXSS
issues.html
workaround so code parsing is more generic now andhtml
is properly displayed.README.md
and demo.README.md
as resource in docs to avoid doc duplication.Test Steps
ng serve
orng serve --aot --prod
README.md
and new default theme.npm run test
npm run lint
npm run build
Screenshots or link to CodePen/Plunker/JSfiddle