Skip to content

Commit 2d5b0a5

Browse files
committed
remove one level on section titles
1 parent a0ae87e commit 2d5b0a5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/user-guide/dom.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ equivalent values: `["hello", 1, 2, 3]`.
6969
class's `new` method PyScript both signals and honours this difference.
7070

7171

72-
### PyDom
72+
## PyDom
7373

7474
The Standard Web APIs are massive and not always very user-friendly. `PyDom` is a
7575
Python modue that exposes the power of the web with an easy and idiomatic Pythonic
@@ -97,7 +97,7 @@ easy to learn, and other successful projects related the web as well (for isntan
9797
We welcome feedback and suggestions.
9898

9999

100-
#### Core Concepts
100+
### Core Concepts
101101

102102
`Pydom` builds on topic of very few and simple core concepts:
103103

@@ -113,13 +113,13 @@ standard HTML DOM query selectors to [locate DOM elements](https://developer.moz
113113

114114
Following, we'll look into each one of these aspects a bit more in detail.
115115

116-
#### Element
116+
### Element
117117

118118
`pydom` `Element` is simply just an abstraction of a tranditional `Element` in a web page.
119119
Every `Element` always maps to an underlying `JavaScript` `Element` in a web page. These 2
120120
elements are always in sync and any change of state in one is reflect into the other.
121121

122-
##### Creating a new element
122+
#### Creating a new element
123123

124124
New elements can be created by using the `pydom.create` method and passing the type of element
125125
being crated. Here's an example of what it looks like:
@@ -149,7 +149,7 @@ pydom['#element-creation-example'][0].append(new_div)
149149

150150
For more details about `pydom.create` please refer to its reference documentation.
151151

152-
##### Setting the content of an element
152+
#### Setting the content of an element
153153

154154
The Element interface offers 2 main ways to set an element content: the `html` and the
155155
`content` attributes:
@@ -163,7 +163,7 @@ any conversion.
163163
In general, we suggest using `content` directly as it'll take care of most use cases without
164164
requiring any extra logic from the user.
165165

166-
##### Changing the element style
166+
#### Changing the element style
167167

168168
Elements have a `style` attribute that can be used to change the element style rules.
169169
The style attribyte can be used as a dictionary and, to set a style rule for the element,
@@ -188,7 +188,7 @@ also offers a convenient `visible` property that can be use show/hide an element
188188
new_p.style.visible = False
189189
```
190190

191-
##### Other useful aspects of the Element API
191+
#### Other useful aspects of the Element API
192192

193193
* `append`: method to append a new child to the element.
194194
* `children`: list of the children of the element.
@@ -198,7 +198,7 @@ attached to any element.
198198
* `show_me`: method to scroll the page to where the element is placed.
199199

200200

201-
#### ElementCollection
201+
### ElementCollection
202202

203203
Element Collections represent a collection of elements typically returned from a query. For instance:
204204

@@ -220,7 +220,7 @@ for element in paragraphs[-2:]:
220220
display(element.html)
221221
```
222222

223-
##### Interacting with an ElementCollection
223+
#### Interacting with an ElementCollection
224224

225225
Besides from allowing operations as an iterable object, `ElementCollection` objects also offer a few
226226
convenient methods to directly interact with th elements in the collection. For instance, it's possible

0 commit comments

Comments
 (0)