File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const update_links = (chapter, chapter_config) => {
1616 body = body . replace ( / { { \s * f i g u r e _ d r o p d o w n .* ?} } / gsm, '' ) ;
1717 // For PDFs tables cannot be in figures
1818 body = body . replace ( / < f i g u r e ( i d = " [ ^ " ] * ?" ) > < d i v c l a s s = " t a b l e - w r a p " > < d i v c l a s s = " t a b l e - w r a p - c o n t a i n e r " > < t a b l e ( [ ^ > ] * ?) > / gs, '<table $1$2>' ) ;
19- body = body . replace ( / < \/ t a b l e > < \/ d i v > < \/ d i v > [ \n ] * < f i g c a p t i o n > ( .* ?) < \/ f i g c a p t i o n > ( [ \n ] * ) < \/ f i g u r e > / gs, '</table><p class="table-caption">$1</p>' ) ;
19+ body = body . replace ( / < \/ t a b l e > [ \n ] * < \/ d i v > [ \n ] * < \/ d i v > [ \n ] * < f i g c a p t i o n > ( .* ?) < \/ f i g c a p t i o n > ( [ \n ] * ) < \/ f i g u r e > / gs, '</table><p class="table-caption">$1</p>' ) ;
2020 // Replace current chapter header ids to full id (e.g. <h2 id="introduction"> -> <h2 id="javascript-introduction">)
2121 body = body . replace ( / < h ( [ 0 - 6 ] ) i d = " / g, '<h$1 id="' + chapter . metadata . chapter + '-' ) ;
2222 // Replace other chapter references with hash to anchor link (e.g. ./javascript#fig-1 -> #javascript-fig-1)
You can’t perform that action at this time.
0 commit comments