-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
book: Fix suggestion-block formatting
Escape the suggestion box backticks by using indent for codeblock at the file level. Also wrap the description of suggestion-block so it's easier to read.
- Loading branch information
Showing
1 changed file
with
50 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,50 @@ | ||
``` | ||
> diff --git a/ch2.txt b/ch2.txt | ||
> index 4d729e6..2641120 100644 | ||
> --- a/ch2.txt | ||
> +++ b/ch2.txt | ||
> @@ -2,13 +2,6 @@ CHAPTER 2. WAGING WAR | ||
> | ||
> 1. Sun Tzu said: In the operations of war, where there are in the field a thousand swift chariots, as many heavy chariots, and a hundred thousand mail-clad soldiers, with provisions enough to carry them a thousand LI, the expenditure at home and at the front, including entertainment of guests, small items such as glue and paint, and sums spent on chariots and armor, will reach the total of a thousand ounces of silver per day. Such is the cost of raising an army of 100,000 men. | ||
> | ||
> -2. When you engage in actual fighting, if victory is long in coming, then men's weapons will grow dull and their ardor will be damped. If you lay siege to a town, you will exhaust your strength. | ||
> - | ||
> -3. Again, if the campaign is protracted, the resources of the State will not be equal to the strain. | ||
> - | ||
> -4. Now, when your weapons are dulled, your ardor damped, your strength exhausted and your treasure spent, other chieftains will spring up to take advantage of your extremity. Then no man, however wise, will be able to avert the consequences that must ensue. | ||
This is a spanned inline comment attached to passages 2 through 4. | ||
> - | ||
> -5. Thus, though we have heard of stupid haste in war, cleverness has never been seen associated with long delays. | ||
> | ||
> 6. There is no instance of a country having benefited from prolonged warfare. | ||
> | ||
> @@ -30,6 +23,11 @@ CHAPTER 2. WAGING WAR | ||
> | ||
> 16. Now in order to kill the enemy, our men must be roused to anger; that there may be advantage from defeating the enemy, they must have their rewards. | ||
> | ||
> +asdf | ||
> +asdf | ||
> +asdf | ||
> +adsf | ||
> + | ||
This is another spanned comment attached to the newly added text, that GitHub will interpret as a [code suggestion](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/incorporating-feedback-in-your-pull-request), suggesting the added text be removed. | ||
```suggestion | ||
-asdf | ||
-asdf | ||
-asdf | ||
-adsf | ||
- | ||
``` | ||
|
||
> 17. Therefore in chariot fighting, when ten or more chariots have been taken, those should be rewarded who took the first. Our own flags should be substituted for those of the enemy, and the chariots mingled and used in conjunction with ours. The captured soldiers should be kindly treated and kept. | ||
> | ||
> 18. This is called, using the conquered foe to augment one's own strength. | ||
``` | ||
> diff --git a/ch2.txt b/ch2.txt | ||
> index 4d729e6..2641120 100644 | ||
> --- a/ch2.txt | ||
> +++ b/ch2.txt | ||
> @@ -2,13 +2,6 @@ CHAPTER 2. WAGING WAR | ||
> | ||
> 1. Sun Tzu said: In the operations of war, where there are in the field a thousand swift chariots, as many heavy chariots, and a hundred thousand mail-clad soldiers, with provisions enough to carry them a thousand LI, the expenditure at home and at the front, including entertainment of guests, small items such as glue and paint, and sums spent on chariots and armor, will reach the total of a thousand ounces of silver per day. Such is the cost of raising an army of 100,000 men. | ||
> | ||
|
||
> -2. When you engage in actual fighting, if victory is long in coming, then men's weapons will grow dull and their ardor will be damped. If you lay siege to a town, you will exhaust your strength. | ||
> - | ||
> -3. Again, if the campaign is protracted, the resources of the State will not be equal to the strain. | ||
> - | ||
> -4. Now, when your weapons are dulled, your ardor damped, your strength exhausted and your treasure spent, other chieftains will spring up to take advantage of your extremity. Then no man, however wise, will be able to avert the consequences that must ensue. | ||
|
||
This is a spanned inline comment attached to passages 2 through 4. | ||
|
||
> - | ||
> -5. Thus, though we have heard of stupid haste in war, cleverness has never been seen associated with long delays. | ||
> | ||
> 6. There is no instance of a country having benefited from prolonged warfare. | ||
> | ||
> @@ -30,6 +23,11 @@ CHAPTER 2. WAGING WAR | ||
> | ||
> 16. Now in order to kill the enemy, our men must be roused to anger; that there may be advantage from defeating the enemy, they must have their rewards. | ||
> | ||
|
||
> +asdf | ||
> +asdf | ||
> +asdf | ||
> +adsf | ||
> + | ||
|
||
This is another spanned comment attached to the newly added text, that | ||
GitHub will interpret as a code suggestion [0], suggesting the added text | ||
be removed. | ||
|
||
```suggestion | ||
-asdf | ||
-asdf | ||
-asdf | ||
-adsf | ||
- | ||
``` | ||
|
||
[0]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/incorporating-feedback-in-your-pull-request | ||
|
||
> 17. Therefore in chariot fighting, when ten or more chariots have been taken, those should be rewarded who took the first. Our own flags should be substituted for those of the enemy, and the chariots mingled and used in conjunction with ours. The captured soldiers should be kindly treated and kept. | ||
> | ||
> 18. This is called, using the conquered foe to augment one's own strength. |