@@ -182,7 +182,7 @@ function walk (opts, nodes) {
182182
183183 // if we have a string, match and replace it
184184 if ( typeof node === 'string' ) {
185- node = placeholders ( node , ctx , delimitersSettings )
185+ node = placeholders ( node , ctx , delimitersSettings , opts )
186186 node = node
187187 . replace ( unescapeDelimitersReplace , delimitersSettings [ 0 ] . text [ 0 ] )
188188 . replace ( delimitersReplace , delimitersSettings [ 1 ] . text [ 0 ] )
@@ -196,14 +196,14 @@ function walk (opts, nodes) {
196196 if ( node . attrs ) {
197197 for ( const key in node . attrs ) {
198198 if ( typeof node . attrs [ key ] === 'string' ) {
199- node . attrs [ key ] = placeholders ( node . attrs [ key ] , ctx , delimitersSettings )
199+ node . attrs [ key ] = placeholders ( node . attrs [ key ] , ctx , delimitersSettings , opts )
200200 node . attrs [ key ] = node . attrs [ key ]
201201 . replace ( unescapeDelimitersReplace , delimitersSettings [ 0 ] . text [ 0 ] )
202202 . replace ( delimitersReplace , delimitersSettings [ 1 ] . text [ 0 ] )
203203 }
204204
205205 // if key is parametr
206- const _key = placeholders ( key , ctx , delimitersSettings )
206+ const _key = placeholders ( key , ctx , delimitersSettings , opts )
207207 if ( key !== _key ) {
208208 node . attrs [ _key ] = node . attrs [ key ]
209209 delete node . attrs [ key ]
0 commit comments