File tree Expand file tree Collapse file tree
constraints_files/header-attrs-2.6
forests_files/header-attrs-2.6
getting-started_files/header-attrs-2.6
semforest-focus_files/header-attrs-2.6 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2+ // be compatible with the behavior of Pandoc < 2.8).
3+ document . addEventListener ( 'DOMContentLoaded' , function ( e ) {
4+ var hs = document . querySelectorAll ( "div.section[class*='level'] > :first-child" ) ;
5+ var i , h , a ;
6+ for ( i = 0 ; i < hs . length ; i ++ ) {
7+ h = hs [ i ] ;
8+ if ( ! / ^ h [ 1 - 6 ] $ / i. test ( h . tagName ) ) continue ; // it should be a header h1-h6
9+ a = h . attributes ;
10+ while ( a . length > 0 ) h . removeAttribute ( a [ 0 ] . name ) ;
11+ }
12+ } ) ;
Original file line number Diff line number Diff line change 1+ // Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2+ // be compatible with the behavior of Pandoc < 2.8).
3+ document . addEventListener ( 'DOMContentLoaded' , function ( e ) {
4+ var hs = document . querySelectorAll ( "div.section[class*='level'] > :first-child" ) ;
5+ var i , h , a ;
6+ for ( i = 0 ; i < hs . length ; i ++ ) {
7+ h = hs [ i ] ;
8+ if ( ! / ^ h [ 1 - 6 ] $ / i. test ( h . tagName ) ) continue ; // it should be a header h1-h6
9+ a = h . attributes ;
10+ while ( a . length > 0 ) h . removeAttribute ( a [ 0 ] . name ) ;
11+ }
12+ } ) ;
Original file line number Diff line number Diff line change 1+ // Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2+ // be compatible with the behavior of Pandoc < 2.8).
3+ document . addEventListener ( 'DOMContentLoaded' , function ( e ) {
4+ var hs = document . querySelectorAll ( "div.section[class*='level'] > :first-child" ) ;
5+ var i , h , a ;
6+ for ( i = 0 ; i < hs . length ; i ++ ) {
7+ h = hs [ i ] ;
8+ if ( ! / ^ h [ 1 - 6 ] $ / i. test ( h . tagName ) ) continue ; // it should be a header h1-h6
9+ a = h . attributes ;
10+ while ( a . length > 0 ) h . removeAttribute ( a [ 0 ] . name ) ;
11+ }
12+ } ) ;
Original file line number Diff line number Diff line change 1+ // Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2+ // be compatible with the behavior of Pandoc < 2.8).
3+ document . addEventListener ( 'DOMContentLoaded' , function ( e ) {
4+ var hs = document . querySelectorAll ( "div.section[class*='level'] > :first-child" ) ;
5+ var i , h , a ;
6+ for ( i = 0 ; i < hs . length ; i ++ ) {
7+ h = hs [ i ] ;
8+ if ( ! / ^ h [ 1 - 6 ] $ / i. test ( h . tagName ) ) continue ; // it should be a header h1-h6
9+ a = h . attributes ;
10+ while ( a . length > 0 ) h . removeAttribute ( a [ 0 ] . name ) ;
11+ }
12+ } ) ;
Original file line number Diff line number Diff line change 1+ // Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2+ // be compatible with the behavior of Pandoc < 2.8).
3+ document . addEventListener ( 'DOMContentLoaded' , function ( e ) {
4+ var hs = document . querySelectorAll ( "div.section[class*='level'] > :first-child" ) ;
5+ var i , h , a ;
6+ for ( i = 0 ; i < hs . length ; i ++ ) {
7+ h = hs [ i ] ;
8+ if ( ! / ^ h [ 1 - 6 ] $ / i. test ( h . tagName ) ) continue ; // it should be a header h1-h6
9+ a = h . attributes ;
10+ while ( a . length > 0 ) h . removeAttribute ( a [ 0 ] . name ) ;
11+ }
12+ } ) ;
You can’t perform that action at this time.
0 commit comments