Skip to content

Commit aa9b567

Browse files
committed
More fixes for %raw% tags showing
1 parent 972a7da commit aa9b567

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

Diff for: src/v2/guide/migration-vue-router.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ to a definition like below in your `routes` configuration:
211211

212212
If you need multiple aliases, you can also use an array syntax:
213213

214-
``` js
214+
{% codeblock lang:js %}
215215
alias: ['/manage', '/administer', '/administrate']
216-
```
216+
{% endcodeblock %}
217217

218218
{% raw %}
219219
<div class="upgrade-path">

Diff for: src/v2/guide/migration.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,15 @@ The implicitly assigned `$index` and `$key` variables have been removed in favor
210210

211211
`track-by` has been replaced with `key`, which works like any other attribute: without the `v-bind:` or `:` prefix, it is treated as a literal string. In most cases, you'd want to use a dynamic binding which expects a full expression instead of a key. For example, in place of:
212212

213-
``` html
213+
{% codeblock lang:html %}
214214
<div v-for="item in items" track-by="id">
215-
```
215+
{% endcodeblock %}
216216

217217
You would now write:
218218

219-
``` html
219+
{% codeblock lang:html %}
220220
<div v-for="item in items" v-bind:key="item.id">
221-
```
221+
{% endcodeblock %}
222222

223223
{% raw %}
224224
<div class="upgrade-path">
@@ -400,9 +400,9 @@ For enumerated attributes, in addition to the falsy values above, the string `"f
400400

401401
When used on a component, `v-on` now only listens to custom events `$emit`ted by that component. To listen for a native DOM event on the root element, you can use the `.native` modifier. For example:
402402

403-
``` html
403+
{% codeblock lang:html %}
404404
<my-component v-on:click.native="doSomething"></my-component>
405-
```
405+
{% endcodeblock %}
406406

407407
{% raw %}
408408
<div class="upgrade-path">
@@ -602,9 +602,9 @@ As you can see, `v-model`'s two-way binding doesn't make sense here. Setting `st
602602

603603
Instead, you should use an array of __objects__ so that `v-model` can update the field on the object. For example:
604604

605-
``` html
605+
{% codeblock lang:html %}
606606
<input v-for="obj in objects" v-model="obj.str">
607-
```
607+
{% endcodeblock %}
608608

609609
{% raw %}
610610
<div class="upgrade-path">
@@ -709,7 +709,7 @@ The `.literal` modifier has been removed, as the same can be easily achieved by
709709

710710
For example, you can update:
711711

712-
``` js
712+
``` html
713713
<p v-my-directive.literal="foo bar baz"></p>
714714
```
715715

@@ -990,9 +990,9 @@ computed: {
990990

991991
You can even order by multiple columns:
992992

993-
``` js
993+
{% codeblock lang:js %}
994994
_.orderBy(this.users, ['name', 'last_login'], ['asc', 'desc'])
995-
```
995+
{% endcodeblock %}
996996

997997
{% raw %}
998998
<div class="upgrade-path">
@@ -1070,9 +1070,9 @@ function pluralizeKnife (count) {
10701070

10711071
For a very naive implementation, you could do something like this:
10721072

1073-
``` js
1073+
{% codeblock lang:js %}
10741074
'$' + price.toFixed(2)
1075-
```
1075+
{% endcodeblock %}
10761076

10771077
In many cases though, you'll still run into strange behavior (e.g. `0.035.toFixed(2)` rounds up to `0.04`, but `0.045` rounds down to `0.04`). To work around these issues, you can use the [`accounting`](http://openexchangerates.github.io/accounting.js/) library to more reliably format currencies.
10781078

@@ -1365,9 +1365,9 @@ Instead, retrieve reactive data directly.
13651365

13661366
Use the native DOM API:
13671367

1368-
``` js
1368+
{% codeblock lang:js %}
13691369
myElement.appendChild(vm.$el)
1370-
```
1370+
{% endcodeblock %}
13711371

13721372
{% raw %}
13731373
<div class="upgrade-path">
@@ -1380,9 +1380,9 @@ myElement.appendChild(vm.$el)
13801380

13811381
Use the native DOM API:
13821382

1383-
``` js
1383+
{% codeblock lang:js %}
13841384
myElement.parentNode.insertBefore(vm.$el, myElement)
1385-
```
1385+
{% endcodeblock %}
13861386

13871387
{% raw %}
13881388
<div class="upgrade-path">
@@ -1395,15 +1395,15 @@ myElement.parentNode.insertBefore(vm.$el, myElement)
13951395

13961396
Use the native DOM API:
13971397

1398-
``` js
1398+
{% codeblock lang:js %}
13991399
myElement.parentNode.insertBefore(vm.$el, myElement.nextSibling)
1400-
```
1400+
{% endcodeblock %}
14011401

14021402
Or if `myElement` is the last child:
14031403

1404-
``` js
1404+
{% codeblock lang:js %}
14051405
myElement.parentNode.appendChild(vm.$el)
1406-
```
1406+
{% endcodeblock %}
14071407

14081408
{% raw %}
14091409
<div class="upgrade-path">
@@ -1416,9 +1416,9 @@ myElement.parentNode.appendChild(vm.$el)
14161416

14171417
Use the native DOM API:
14181418

1419-
``` js
1419+
{% codeblock lang:js %}
14201420
vm.$el.remove()
1421-
```
1421+
{% endcodeblock %}
14221422

14231423
{% raw %}
14241424
<div class="upgrade-path">

0 commit comments

Comments
 (0)