This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 6 files changed +19
-1311
lines changed
6 files changed +19
-1311
lines changed Original file line number Diff line number Diff line change 2
2
* All parsing/transformation code goes here. All code here should be sync to ease testing.
3
3
*/
4
4
5
- var Showdown = require ( '../../lib/ showdown' ) . Showdown ;
5
+ var Showdown = require ( 'showdown' ) ;
6
6
var DOM = require ( './dom.js' ) . DOM ;
7
7
var htmlEscape = require ( './dom.js' ) . htmlEscape ;
8
8
var Example = require ( './example.js' ) . Example ;
@@ -216,7 +216,7 @@ Doc.prototype = {
216
216
} ) ;
217
217
} ) ;
218
218
text = parts . join ( '' ) ;
219
- text = new Showdown . converter ( ) . makeHtml ( text ) ;
219
+ text = new Showdown . converter ( { extensions : [ 'table' ] } ) . makeHtml ( text ) ;
220
220
text = text . replace ( / (?: < p > ) ? ( R E P L A C E M E \d + ) (?: < \/ p > ) ? / g, function ( _ , id ) {
221
221
return placeholderMap [ id ] ;
222
222
} ) ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 13
13
"qq" : " 0.3.5" ,
14
14
"shelljs" : " 0.1.2" ,
15
15
"karma" : " 0.8.4" ,
16
- "yaml-js" : " 0.0.5"
16
+ "yaml-js" : " 0.0.5" ,
17
+ "showdown" : " 0.3.1"
17
18
},
18
19
"licenses" : [
19
20
{
Original file line number Diff line number Diff line change @@ -143,6 +143,14 @@ directive.tabbable = function() {
143
143
} ;
144
144
} ;
145
145
146
+ directive . table = function ( ) {
147
+ return {
148
+ restrict : 'E' ,
149
+ link : function ( scope , element , attrs ) {
150
+ element [ 0 ] . className = 'table table-bordered table-striped code-table' ;
151
+ }
152
+ } ;
153
+ } ;
146
154
147
155
directive . tabPane = function ( ) {
148
156
return {
Original file line number Diff line number Diff line change 15
15
*
16
16
* Below is a more detailed breakdown of the supported callback events provided by pre-exisitng ng directives:
17
17
*
18
- * * {@link ng.directive:ngRepeat#animations ngRepeat} — enter, leave and move
19
- * * {@link ng.directive:ngView#animations ngView} — enter and leave
20
- * * {@link ng.directive:ngInclude#animations ngInclude} — enter and leave
21
- * * {@link ng.directive:ngSwitch#animations ngSwitch} — enter and leave
22
- * * {@link ng.directive:ngShow#animations ngShow & ngHide} - show and hide respectively
18
+ * | Directive | Supported Animations |
19
+ * |========================================================== |====================================================|
20
+ * | {@link ng.directive:ngRepeat#animations ngRepeat} | enter, leave and move |
21
+ * | {@link ng.directive:ngView#animations ngView} | enter and leave |
22
+ * | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave |
23
+ * | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave |
24
+ * | {@link ng.directive:ngShow#animations ngShow & ngHide} | show and hide |
23
25
*
24
26
* You can find out more information about animations upon visiting each directive page.
25
27
*
You can’t perform that action at this time.
0 commit comments