#### Andrew Nanton

20 Oct, 2011 08:39 PM

First, thanks for a great application. I'm trying to figure out how to use the table of contents in my exported HTML. Poking around, it looks like generatedtoc.js needs a

; but where do I put it if I want to exactly replicate the preview functionality.

Thanks,
Andy

1. Posted by Andrew Nanton on 20 Oct, 2011 08:40 PM

Oops, it edited out my <div id="generated-toc"></div>. Thanks in advance.

2. Support Staff Posted by Brett on 20 Oct, 2011 08:47 PM

Right at the top of the body section, first element. I'm attaching the additional CSS styles you'll need as well.

3. Support Staff Posted by Brett on 20 Oct, 2011 09:05 PM

By the way, the Web Inspector is enabled in the preview, you can right click and choose Inspect Element to take a look at the whole DOM and included scripts.

4. Posted by Andrew Nanton on 20 Oct, 2011 09:08 PM

Thanks! I'm getting the navigation overlay, but it's empty. Here's the relevant section:

</head>
<body class="normal">
<div id="generated-toc"></div>
<div id="wrapper">


Am I doing that correctly?

5. Posted by Andrew Nanton on 20 Oct, 2011 09:09 PM

Missed your update as I was replying. I'll try that, thanks again.

6. Support Staff Posted by Brett on 20 Oct, 2011 09:40 PM

Let me know if you don't find what you need in the Inspector.

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

### »

#### Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

# Keyboard shortcuts

### Generic

? Show this help Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 21 Feb, 2020 11:32 PM Option to use MathJax 3? 20 Feb, 2020 03:12 PM Regular crashes 13 Feb, 2020 09:22 PM Markdown Formatting 11 Feb, 2020 11:53 AM Custom themes not working 10 Feb, 2020 06:48 PM KaTex Preview Update

## Recent Articles

 Using JavaScript in Marked Custom CSS: Writing custom CSS for Marked License code has already been utilized Highlight sentences longer than a certain number of words How do I retrieve a lost license (direct version)