[Github-comments] [geany/geany-plugins] markdown: in html, generated TOC has dead links (#771)

VictorelPetrovich notifications at xxxxx
Sun Sep 9 02:53:54 UTC 2018


I installed geany-plugins, and activated mardown plugin.
When I create an `.md` doc like this: 
```
# Test of TOC

**Contents**

1. [Introduction](#Introduction)
2. [Installation](#Installation)


# Introduction


asd;lfk asdklf ja;sldkfj a;ldfk j

(a full page like this) 


# Installation

asd;lfk asdklf ja;sldkfj a;ldfk j

(a full page like this) 

```

Then, in the side pane with Mardown Preview, the links in the table of contents do not work. 
(In my tests ,there were many pages of text in each section, to make sure it would navigate down if  the links in TOC work to work)
If I generate the `html` with `menu/tools/Export Markdown as Html...`, I get this: ( I did not change the template or any of the settings for Markdown plugin)

``` html
<html>
  <head>
    <style type="text/css">
      body {
        font-family: Serif;
        font-size: 12pt;
        background-color: #ffffff;
        color: #000000;
      }
      code {
        font-family: Mono;
        font-size: 12pt;
      }
    </style>
  </head>
  <body>
    <h1>Test of TOC</h1>

<p><strong>Contents</strong></p>

<ol>
<li><a href="#Introduction">Introduction</a></li>
<li><a href="#Installation">Installation</a></li>
</ol>

<h1>Introduction</h1>

<p>asd;lfk asdklf ja;sldkfj a;ldfk j</p>

<p>(a full page like this)</p>


<h1>Installation</h1>

<p>asd;lfk asdklf ja;sldkfj a;ldfk j</p>

<p>(a full page like this)</p>

  </body>
</html>
```
When I open this in a browser (Chrome), the links in TOC don't work either.
If I edit the html so that to have a
```html
<a name="Introduction"></a>
```
besides 
```html
<h1>Installation</h1>
```
then the links work, as expected.

So: is it a problem with my installation, or ...?

It's on Windows 7; I installed the plugins from https://plugins.geany.org/downloads.html
```
19:22:24: Geany INFO		: GTK 2.24.32, GLib 2.54.3
19:22:24: Geany INFO		: System data dir: C:\Program Files\Geany\data
19:22:24: Geany INFO		: User config dir: C:\Users\Admin\AppData\Roaming\geany
19:22:25: Geany INFO		: System plugin path: C:\Program Files\Geany\lib\geany
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/771
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180908/89d5d32e/attachment.html>


More information about the Github-comments mailing list