friendica / red

The Red Matrix
MIT License
214 stars 50 forks source link

Fixed bbode element toc for webpages #863

Closed einervonvielen closed 9 years ago

einervonvielen commented 9 years ago

Cause: If the textarea "Title" is left empty in the webpage creator (https://hostname/webpages/username) Response: Webpages can contain empty headings h3

einervonvielen commented 9 years ago

An alternative solution to this fix would be:

einervonvielen commented 9 years ago

Thanks, friendica and pafu.

pafcu commented 9 years ago

@einervonvielen I meant https://github.com/ndabas/toc where the source is originally taken from. Someone else outside this project might have the same problems with the library.

einervonvielen commented 9 years ago

No. Why? the JS-script takes parameters. One of them is the html element where it should find headers. This defaults to . I have thought about it:

pafcu commented 9 years ago

I'm not sure I understand what you mean. Also, you have to put HTML inside special blocks, or GitHub won't show it correctly. Check the "Markdown supported" link above the editor.