docs: fix styles and escape

This commit is contained in:
Yang Jun
2024-08-20 03:35:37 +08:00
parent b1f0260dcb
commit 5b1658c823
6 changed files with 11 additions and 7 deletions
@@ -93,7 +93,7 @@ engine.registerTag('random', {
})
```
`{ max: 10 }` 上下文上渲染 `{% random from:2, to:max %}` 将会得到 [2, 10] 范围内的随机数。见这个 JSFiddle<http://jsfiddle.net/ctj364up/4/>。
`{ max: 10 }` 上下文上渲染 `{% raw %}{% random from:2, to:max %}{% endraw %}` 将会得到 [2, 10] 范围内的随机数。见这个 JSFiddle<http://jsfiddle.net/ctj364up/4/>。
[register-tags]: /tutorials/register-filters-tags.html
[Tokenizer]: /api/classes/Tokenizer.html