Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AsciiDoc Language
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Bachmann
AsciiDoc Language
Commits
f8bcc1ba
Commit
f8bcc1ba
authored
4 years ago
by
Dan Allen
Browse files
Options
Downloads
Patches
Plain Diff
resolves #21 document where anchor must be placed for item in dlist (PR #22)
parent
ed694f82
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/attributes/examples/id.adoc
+10
-2
10 additions, 2 deletions
modules/attributes/examples/id.adoc
modules/attributes/pages/ids.adoc
+10
-2
10 additions, 2 deletions
modules/attributes/pages/ids.adoc
with
20 additions
and
4 deletions
modules/attributes/examples/id.adoc
+
10
−
2
View file @
f8bcc1ba
...
@@ -27,11 +27,19 @@ anchor:bookmark-c[]Use a cross reference to link to this location.
...
@@ -27,11 +27,19 @@ anchor:bookmark-c[]Use a cross reference to link to this location.
[[anchor-point]]* list item text
[[anchor-point]]* list item text
// end::anchor-wrong[]
// end::anchor-wrong[]
// tag::anchor-list[]
// tag::anchor-list
-item
[]
* First item
* First item
* [[step2]]Second item
* [[step2]]Second item
* Third item
* Third item
// end::anchor-list[]
// end::anchor-list-item[]
// tag::anchor-dlist-item[]
[[cpu,CPU]]Central Processing Unit (CPU)::
The brain of the computer.
[[hard-drive]]Hard drive::
Permanent storage for operating system and/or user files.
// end::anchor-dlist-item[]
// tag::anchor-header[]
// tag::anchor-header[]
=== Version 4.9 [[version-4_9]]
=== Version 4.9 [[version-4_9]]
...
...
This diff is collapsed.
Click to expand it.
modules/attributes/pages/ids.adoc
+
10
−
2
View file @
f8bcc1ba
...
@@ -114,7 +114,7 @@ The anchors in the text get replaced with invisible anchor points in the output.
...
@@ -114,7 +114,7 @@ The anchors in the text get replaced with invisible anchor points in the output.
For example, you would not put an anchor in front of a list item:
For example, you would not put an anchor in front of a list item:
.
Wrong
position for an anchor ID in front of a list item
.
.
Incorrect
position for an anchor ID in front of a list item
[source]
[source]
----
----
include::example$id.adoc[tag=anchor-wrong]
include::example$id.adoc[tag=anchor-wrong]
...
@@ -125,7 +125,15 @@ Instead, you would put it at the very start of the text of the list item:
...
@@ -125,7 +125,15 @@ Instead, you would put it at the very start of the text of the list item:
.Define an inline anchor on a list item
.Define an inline anchor on a list item
[source]
[source]
----
----
include::example$id.adoc[tag=anchor-list]
include::example$id.adoc[tag=anchor-list-item]
----
For a description list, the anchor must be placed at the start of the term:
.Define an inline anchor on a description list item
[source]
----
include::example$id.adoc[tag=anchor-dlist-item]
----
----
Here's how you can define the ID for a section using an inline anchor:
Here's how you can define the ID for a section using an inline anchor:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment