2012-03-12 15 views
3

内部参照を使用して、ドキュメント内のいくつかのセクションで私のwikiページ上のインデックスをリンクしようとしています。ここに例があります:再構成されたテキストを含むGitHub wikiの参照を使用する

* `My index`_ 
    + Foreword_ 
    + `Technical details`_ 


My index 
-------- 

Foreword 
~~~~~~~~ 

Technical details 
~~~~~~~~~~~~~~~~~ 

私がrest2htmlでHTMLページを生成すると、正しい結果が得られます。しかし、GitHub wikiは参照に余分な単語を挿入し、リンクは機能しません。

https://github.com/myaccount/myproject/wiki/Page#wiki-my-index 
https://github.com/myaccount/myproject/wiki/Page#wiki-foreword 
https://github.com/myaccount/myproject/wiki/Page#wiki-technical-details 

GitHubページに関連する文書が見つかりませんでしたので、私は迷っています。

答えて

3

生成されたdivにクラスIDがないようです。ページソースを確認してください(そうでない場合)。

<ul> 
    <li><dl class="first docutils"> 
    <dt><a class="reference internal" href="#my-index">My index</a></dt> 
    <li><a class="reference internal" href="#foreword">Foreword</a></li> 
    <li><a class="reference internal" href="#technical-details">Technical details</a></li> 
</ul> 

<div class="section" id="my-index"> 
    <h1>My index</h1> 
</div> 
<div class="section" id="foreword"> 
    <h2>Foreword</h2> 
</div> 
<div class="section" id="technical-details"> 
    <h2>Technical details</h2> 
</div> 

編集:ユーザーが直感私もREADME.rstファイルでこの問題を気づいたa GitHub markup issue

で同じ問題に言及している私は、これは、それがどのように見えるかではと思います。 見出しだけでなく、.rstファイルのインラインターゲット。 _ some target、 の作業はしないでください。インラインターゲットテキストはaにラップされますが、 はリンク先の任意の種類に作られません。これを個別の 号として提出する必要がありますか?

+0

ありがとうTim!私はバグを購読しています。 – Mariano

関連する問題