@@ -42,7 +42,7 @@ Now modify `/home/web/test.md` to list the children using the `<list/>` JSX:
43 This is a simple markdown file.
43 This is a simple markdown file.
45− <div><list /></div>
45+ <div><list / />
47To view your file as raw `md`:
47To view your file as raw `md`:
@@ -148,31 +148,31 @@ For those familiar with React / Flux each JSX tag corresponds to a component in
149### `<list>`
149### `<list>`
151−Example: `<list dataPath="/posts" titlesOnly="true"></list>`
151+Example: `<list src="/posts" titlesOnly="true" />`
153Creates a list of children at a path. Defaults to the current path.
153Creates a list of children at a path. Defaults to the current path.
155Optional properties:
155Optional properties:
157−- `dataPath`: Path to load kids from.
157+- `src`: Path to load kids from.
158- `titlesOnly`: Only show the 'title' which is either the filename or the first h1.
158- `titlesOnly`: Only show the 'title' which is either the filename or the first h1.
159- `sortBy`: Can be `date` if items have a `date` YAML.
159- `sortBy`: Can be `date` if items have a `date` YAML.
160- `className`: Class to be assigned to the container.
160- `className`: Class to be assigned to the container.
162### `<kids>`
162### `<kids>`
164−Example: `<kids dataPath="/posts"></kids>`
164+Example: `<kids src="/posts" />`
166Includes all the children at the specified path separated by `<hr>` tags.
166Includes all the children at the specified path separated by `<hr>` tags.
168Optional properties:
168Optional properties:
170−- `dataPath`: Path to load kids from.
170+- `src`: Path to load kids from.
171- `className`: Class to be assigned to the container.
171- `className`: Class to be assigned to the container.
173### `<toc>`
173### `<toc>`
175−Example: `<toc noHeader="true"></toc>`
175+Example: `<toc noHeader="true" />`
177Creates a table of contents from the `h1` - `h6` tags on the page.
177Creates a table of contents from the `h1` - `h6` tags on the page.
@@ -244,7 +244,7 @@ Talk, for example, looks like this:
244 <script src="/~~/~/at/lib/js/urb.js" />
244 <script src="/~~/~/at/lib/js/urb.js" />
245 <script src="/talk/main.js" />
245 <script src="/talk/main.js" />
246 <link href="/talk/main.css" rel="stylesheet" />
246 <link href="/talk/main.css" rel="stylesheet" />
247− <talk></talk>
247+ <talk />