Skip to content

Commit 65cac58

Browse files
committed
Fix heading levels
1 parent f906c16 commit 65cac58

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/guides/overriding-template-tags.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This default is used for any tag that's not passed its own context, allowing spe
2929

3030
Currently this feature only supports providing a default for the output of the tag, this does not support modifying context in templates such as `{% an_example_tag page.url as example_variable %}`.
3131

32-
### When do I need to override a template tag?
32+
## When do I need to override a template tag?
3333

3434
Ideally your pattern library should be independent, so it doesn't fail when
3535
you run it with a project that has no entries in DB or on a local machine
@@ -38,7 +38,7 @@ This means that you need to override a template tag when it hits DB or any other
3838

3939
You amy also need to override template tags in other cases, when data provided by the pattern library’s context mocking is of a different type to what Django would expect – this is because the pattern library only uses data types that are de-serializable from YAML.
4040

41-
### Override modes
41+
## Override modes
4242

4343
There are two options when it comes to template tag overriding:
4444

@@ -49,7 +49,7 @@ There are two options when it comes to template tag overriding:
4949
You can also return a structure (dict or list) which is useful when
5050
overriding ["Simple tags"](https://docs.djangoproject.com/en/2.0/howto/custom-template-tags/#simple-tags) or a custom tag that returns an object or dict
5151

52-
### Output into a variable
52+
## Output into a variable
5353

5454
Some tags can set their value into a variable like:
5555

@@ -71,7 +71,7 @@ But when you need to override a tag which sets result into a variable in
7171
you would need to specify output var name manually. We will look into how
7272
to do that later in the examples section.
7373

74-
### Overriding examples
74+
## Overriding examples
7575

7676
Let's assume that we want to override the `{% image image resize_rule %}`
7777
template tag from the `some_package.image_utils` template tag set
@@ -133,7 +133,7 @@ Let's assume that we have a template with two calls of the
133133
</div>
134134
```
135135

136-
#### Render another template or pattern
136+
### Render another template or pattern
137137

138138
Our `yaml` will similar to this:
139139

@@ -182,7 +182,7 @@ There are two approaches for this problem:
182182
in your `yaml` file
183183

184184

185-
#### Return raw data
185+
### Return raw data
186186

187187
Let's update our `yaml` to use raw data:
188188

0 commit comments

Comments
 (0)