diff --git a/src/cdk/tree/tree.md b/src/cdk/tree/tree.md
index 3651dcfc5f7..4583e7c450b 100644
--- a/src/cdk/tree/tree.md
+++ b/src/cdk/tree/tree.md
@@ -16,11 +16,11 @@ list of items from hierarchical data. The "level" of each tree node is read thro
method of the `TreeControl`; this level can be used to style the node such that it is indented to
the appropriate level.
-```
+```html
- parent node
- -- child node1
- -- child node2
+ parent node
+ -- child node1
+ -- child node2
```
@@ -36,13 +36,13 @@ variations, such as infinite or virtual scrolling.
In nested tree, children nodes are placed inside their parent node in DOM. The parent node contains
a node outlet into which children are projected.
-```
+```html
-
- parent node
- -- child node1
- -- child node2
-
+
+ parent node
+ -- child node1
+ -- child node2
+
```
@@ -61,9 +61,9 @@ nested children nodes.
A node definition is specified via any element with `cdkNodeDef`. This directive exports the node
data to be used in any bindings in the node template.
-```
+```html
- {{node.key}}: {{node.value}}
+ {{node.key}}: {{node.value}}
```
@@ -79,10 +79,10 @@ Spacing can be added either by applying the `cdkNodePadding` directive or by app
When using nested tree nodes, the node template must contain a `cdkTreeNodeOutlet`, which marks
where the children of the node will be rendered.
-```
+```html
- {{node.value}}
-
+ {{node.value}}
+
```
@@ -93,7 +93,7 @@ A `cdkTreeNodeToggle` can be added in the tree node template to expand/collapse
The toggle toggles the expand/collapse functions in TreeControl and is able to expand/collapse
a tree node recursively by setting `[cdkTreeNodeToggleRecursive]` to true.
-```
+```html
{{node.value}}
@@ -103,7 +103,7 @@ The toggle can be placed anywhere in the tree node, and is only toggled by click
For best accessibility, `cdkTreeNodeToggle` should be on a button element and have an appropriate
`aria-label`.
-```
+```html