Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Is it possible to generate a table of contents based on h1/h2/h3 HTML tags?, posted by Niklas Hoglund on Mon Jun 19 07:48:49 2017 
    icon2.gif   Re: Is it possible to generate a table of contents based on h1/h2/h3 HTML tags?, posted by Stefan Ritt on Mon Jun 19 08:33:07 2017 
Message ID: 68630     Entry time: Mon Jun 19 07:48:49 2017     Reply to this: 68631
Icon: Question  Author: Niklas Hoglund  Author Email: niklas@hoglund.pp.se 
Category: Question  OS: Windows  ELOG Version: 3.1.3 
Subject: Is it possible to generate a table of contents based on h1/h2/h3 HTML tags? 

Is it possible to generate a table of contents based on h1/h2/h3 HTML tags?

Example:

toc()

< h1>test
< h2>test1
< h1>test2
< h2>test3
< h1>test4
< h2>test5

Results in:

1. test
1.1 test1
2. test2
2.1 test3
3. test4
3.1 test5

...the text...
ELOG V3.1.5-fe60aaf