forked from golang/go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/doc/comment: parse and print lists
[This CL is part of a sequence implementing the proposal golang#51082. The design doc is at https://go.dev/s/godocfmt-design.] Implement lists, like: Three numbers: - One - Two - Three For golang#51082. Change-Id: Id87d9c19bca677be968f3803809a9ea6c705f3ad Reviewed-on: https://go-review.googlesource.com/c/go/+/397286 Run-TryBot: Russ Cox <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
- Loading branch information
Showing
15 changed files
with
869 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
-- input -- | ||
Text. | ||
- Not a list. | ||
- Here is the list. | ||
• Using multiple bullets. | ||
* Indentation does not matter. | ||
+ Lots of bullets. | ||
More text. | ||
|
||
-- gofmt -- | ||
Text. | ||
- Not a list. | ||
- Here is the list. | ||
- Using multiple bullets. | ||
- Indentation does not matter. | ||
- Lots of bullets. | ||
|
||
More text. | ||
|
||
-- text -- | ||
Text. - Not a list. | ||
- Here is the list. | ||
- Using multiple bullets. | ||
- Indentation does not matter. | ||
- Lots of bullets. | ||
|
||
More text. | ||
|
||
-- markdown -- | ||
Text. - Not a list. | ||
|
||
- Here is the list. | ||
- Using multiple bullets. | ||
- Indentation does not matter. | ||
- Lots of bullets. | ||
|
||
More text. | ||
|
||
-- html -- | ||
<p>Text. | ||
- Not a list. | ||
<ul> | ||
<li>Here is the list. | ||
<li>Using multiple bullets. | ||
<li>Indentation does not matter. | ||
<li>Lots of bullets. | ||
</ul> | ||
<p>More text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
-- input -- | ||
Text. | ||
1. Uno | ||
2) Dos | ||
3. Tres | ||
5. Cinco | ||
7. Siete | ||
11. Once | ||
12. Doce | ||
13. Trece. | ||
|
||
-- gofmt -- | ||
Text. | ||
1. Uno | ||
2. Dos | ||
3. Tres | ||
5. Cinco | ||
7. Siete | ||
11. Once | ||
12. Doce | ||
13. Trece. | ||
|
||
-- text -- | ||
Text. | ||
1. Uno | ||
2. Dos | ||
3. Tres | ||
5. Cinco | ||
7. Siete | ||
11. Once | ||
12. Doce | ||
13. Trece. | ||
|
||
-- markdown -- | ||
Text. | ||
|
||
1. Uno | ||
2. Dos | ||
3. Tres | ||
5. Cinco | ||
7. Siete | ||
11. Once | ||
12. Doce | ||
13. Trece. | ||
|
||
-- html -- | ||
<p>Text. | ||
<ol> | ||
<li>Uno | ||
<li>Dos | ||
<li>Tres | ||
<li value="5">Cinco | ||
<li value="7">Siete | ||
<li value="11">Once | ||
<li>Doce | ||
<li>Trece. | ||
</ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- input -- | ||
Text. | ||
|
||
1. Uno | ||
1. Dos | ||
1. Tres | ||
1. Quatro | ||
|
||
-- gofmt -- | ||
Text. | ||
|
||
1. Uno | ||
1. Dos | ||
1. Tres | ||
1. Quatro | ||
|
||
-- markdown -- | ||
Text. | ||
|
||
1. Uno | ||
1. Dos | ||
1. Tres | ||
1. Quatro | ||
|
||
-- html -- | ||
<p>Text. | ||
<ol> | ||
<li>Uno | ||
<li value="1">Dos | ||
<li value="1">Tres | ||
<li value="1">Quatro | ||
</ol> |
Oops, something went wrong.