From 01314f53987e57c4fcb49fb86d3971bdb206857f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 Feb 2016 05:53:12 +0200 Subject: Add support for ids in paragraphs, local fragment references in links For example: " \h#hello|Hello Example| See the \l{#hello Hello Example} " --- tests/toc/toc.cli | 31 +++++++++++++++---------------- tests/toc/toc.html | 32 +++++++++++++++++--------------- 2 files changed, 32 insertions(+), 31 deletions(-) (limited to 'tests') diff --git a/tests/toc/toc.cli b/tests/toc/toc.cli index 5e9c43a..cb6fd8c 100644 --- a/tests/toc/toc.cli +++ b/tests/toc/toc.cli @@ -2,57 +2,56 @@ "\$TOC$" " -\h0|Preface| +\h0#preface|Preface| This document describes something awesome. -\h|About This Document| +\h#about-document|About This Document| And this document is also awesome. -\h|More Information| +\h#more-information|More Information| It is so awesome that no further information will be required." " -\H|PART I| +\H#part1|PART I| Start of part one. -\h1|Introduction| +\h1#intro|Introduction| Beginning of the first chapter. -\h|Architecture and Workflow| +\h#arch-flow|Architecture and Workflow| Some basics. -\h|Benefits| +\h#benefits|Benefits| You will like them. -\h1|Hello World| +\h1#hello|Hello World| Beginning of the second chapter. -\h|Setup| +\h#hell-setup|Setup| More basics. -\h|Compiling| +\h#hello-compile|Compiling| How to build the example -\h2|Compiling with GCC| +\h2#hello-compile-gcc|Compiling with GCC| -GCC +GCC. For Clang see \l{#hello-compile-clang Compiling with Clang}. -\h2|Compiling with Clang| +\h2#hello-compile-clang|Compiling with Clang| -Clang +Clang. For GCC see \l{#hello-compile-gcc Compiling with GCC}. -\h|Conclusion| +\h#hello-conclusion|Conclusion| Some remarks. - " diff --git a/tests/toc/toc.html b/tests/toc/toc.html index 383ff12..7da2f0c 100644 --- a/tests/toc/toc.html +++ b/tests/toc/toc.html @@ -28,55 +28,57 @@ -

Preface

+

Preface

This document describes something awesome.

-

About This Document

+

About This Document

And this document is also awesome.

-

More Information

+

More Information

It is so awesome that no further information will be required.

-

PART I

+

PART I

Start of part one.

-

Introduction

+

Introduction

Beginning of the first chapter.

-

Architecture and Workflow

+

Architecture and Workflow

Some basics.

-

Benefits

+

Benefits

You will like them.

-

Hello World

+

Hello World

Beginning of the second chapter.

-

Setup

+

Setup

More basics.

-

Compiling

+

Compiling

How to build the example

-

Compiling with GCC

+

Compiling with GCC

-

GCC

+

GCC. For Clang see Compiling with + Clang.

-

Compiling with Clang

+

Compiling with Clang

-

Clang

+

Clang. For GCC see Compiling with + GCC.

-

Conclusion

+

Conclusion

Some remarks.

-- cgit v1.1