mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-08-06 22:22:52 +00:00
Add TypeScript style guide
This commit is contained in:
committed by
Stephen Hicks
parent
d5b5104763
commit
bfa71446db
@@ -41,6 +41,10 @@ window.initStyleGuide = function(init) {
|
||||
// properly. Fix it by moving the code directly into the pre.
|
||||
find('pre > code', function(code) {
|
||||
var pre = code.parentElement;
|
||||
// internal TS style guide does not want prettyprint
|
||||
if (code.classList.contains("language-ts")) {
|
||||
code.classList.add("prettyprint");
|
||||
}
|
||||
pre.className = code.className;
|
||||
pre.innerHTML = code.innerHTML;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user