@@ -182,7 +182,7 @@ function walk (opts, nodes) {
182
182
183
183
// if we have a string, match and replace it
184
184
if ( typeof node === 'string' ) {
185
- node = placeholders ( node , ctx , delimitersSettings )
185
+ node = placeholders ( node , ctx , delimitersSettings , opts )
186
186
node = node
187
187
. replace ( unescapeDelimitersReplace , delimitersSettings [ 0 ] . text [ 0 ] )
188
188
. replace ( delimitersReplace , delimitersSettings [ 1 ] . text [ 0 ] )
@@ -196,14 +196,14 @@ function walk (opts, nodes) {
196
196
if ( node . attrs ) {
197
197
for ( const key in node . attrs ) {
198
198
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 )
200
200
node . attrs [ key ] = node . attrs [ key ]
201
201
. replace ( unescapeDelimitersReplace , delimitersSettings [ 0 ] . text [ 0 ] )
202
202
. replace ( delimitersReplace , delimitersSettings [ 1 ] . text [ 0 ] )
203
203
}
204
204
205
205
// if key is parametr
206
- const _key = placeholders ( key , ctx , delimitersSettings )
206
+ const _key = placeholders ( key , ctx , delimitersSettings , opts )
207
207
if ( key !== _key ) {
208
208
node . attrs [ _key ] = node . attrs [ key ]
209
209
delete node . attrs [ key ]
0 commit comments