improve how markdown code language is commented

We added a space between the markdown triple code mark
and language that was enclosed in HTML comments.

So a line of the form:

````
```<!---c--->
````

became:

````
``` <!---c--->
````

This was done to **help** some code see that the HTML comment
string was not a markdown code specifier.   Not all code
understands this after this changed.  For example, `pandoc(1)`
still forms HTML classes of the form "&lt;!---c--&gt;"
when it encounters the above mentioned change.

We also fixed a problem with `2019/dogon/README.md` regarding
a markdown code block.

We also fixed a problem with `2020/yang/README.md` regarding
a markdown code block.
This commit is contained in:
Landon Curt Noll committed 2024-04-12 11:45:50 -07:00
1 parent c549f6585e
commit 3ddbac9e6b
357 files changed
+2432 -2399

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
## To build:
```<!---sh-->
``` <!---sh-->
make all
```
@@ -12,7 +12,7 @@ program. See the [Alternate code](#alternate-code) section below for details.
## Try:
```<!---sh-->
``` <!---sh-->
./applin
```
@@ -25,7 +25,7 @@ with this entry.
### Alternate build:
```<!---sh-->
``` <!---sh-->
make alt
```
+3 -3
View File
@@ -1,6 +1,6 @@
## To build:
```<!---sh-->
``` <!---sh-->
make all
```
@@ -18,13 +18,13 @@ For more detailed information see [1988 dale bugs](../../bugs.html#1988_dale).
## Try:
```<!---sh-->
``` <!---sh-->
./try.sh
```
Observe that three of the commands in the script are:
```<!---sh-->
``` <!---sh-->
./dale these files are in this directory: *
./dale $(printf "the following files exist in this directory:\n%s\n" *)
./dale "$(printf "the following files exist in this directory:\n%s\n" *)"
+5 -5
View File
@@ -1,6 +1,6 @@
## To build:
```<!---sh-->
``` <!---sh-->
make all
```
@@ -11,7 +11,7 @@ code](#alternate-code) below.
## To use:
```<!---sh-->
``` <!---sh-->
./isaak
```
@@ -21,7 +21,7 @@ code](#alternate-code) below.
The original version of this code is in [isaak.alt.c](isaak.alt.c).
The original entry starts with the line:
```<!---c-->
``` <!---c-->
main(){};
```
@@ -37,7 +37,7 @@ compile.
### Alternate build:
```<!---sh-->
``` <!---sh-->
make alt
```
@@ -64,7 +64,7 @@ due to the fact that BSD style systems have an `sprintf(3)` that returns a `char
*`. Due to the above problems, we placed the output of this program in the
file: isaak.encode. To read this file do.
```<!---sh-->
``` <!---sh-->
uudecode < isaak.encode
cat isaak.output
```
+7 -7
View File
@@ -1,13 +1,13 @@
## To build:
```<!---sh-->
``` <!---sh-->
make
```
## To use:
```<!---sh-->
``` <!---sh-->
./litmaath some text
```
@@ -17,7 +17,7 @@ code](#alternate-code) section below.
## Try:
```<!---sh-->
``` <!---sh-->
./litmaath eschew obfuscation
```
@@ -31,7 +31,7 @@ a file.
### Alternate build:
```<!---sh-->
``` <!---sh-->
make alt
```
@@ -40,7 +40,7 @@ Use `litmaath.alt` as you would `litmaath` above.
### Alternate try:
```<!---sh-->
``` <!---sh-->
./litmaath.alt six was afraid of seven because seven eight nine
```
@@ -50,7 +50,7 @@ Use `litmaath.alt` as you would `litmaath` above.
Note the unusual structure:
```<!---c-->
``` <!---c-->
while (<condition>)
;
```
@@ -66,7 +66,7 @@ could make the body of the `while` loop an `fprintf` with interesting
variables like:
```<!---c-->
``` <!---c-->
fprintf(stderr,
"argv=%lo *argv=%lo **argv=%c argv[1]=%lo *argv[1]=%c argc=%d\n",
(long) argv, (long) *argv, *argv && **argv ? **argv : '@',
+1 -1
View File
@@ -1,6 +1,6 @@
## To build:
```<!---sh-->
``` <!---sh-->
make all
```
+3 -3
View File
@@ -1,13 +1,13 @@
## To build:
```<!---sh-->
``` <!---sh-->
make all
```
## Try:
```<!---sh-->
``` <!---sh-->
./reddy
char *(*(fun[16])();
char *(*(*(*(*(*fun[32])))))();
@@ -15,7 +15,7 @@
What happens if you input, and what you do about it?
```<!---c-->
``` <!---c-->
char *(*(*(*(*(*fun[32])))))());
```
+4 -4
View File
@@ -1,20 +1,20 @@
## To build:
```<!---sh-->
``` <!---sh-->
make all
```
## Try:
```<!---sh-->
``` <!---sh-->
./robison 80 10
./robison 40 16
```
The first and second parameters are optional. You might also try:
```<!---sh-->
``` <!---sh-->
./robison 80 2 # <--- can you find the bug?
./robison 80 -246
```
@@ -24,7 +24,7 @@ The first and second parameters are optional. You might also try:
The following might make an interesting benchmark:
```<!---sh-->
``` <!---sh-->
./robison 100
```
+6 -6
View File
@@ -1,6 +1,6 @@
## To build:
```<!---sh-->
``` <!---sh-->
make clobber all
```
@@ -12,7 +12,7 @@ code](#alternate-code) section below.
## To use:
```<!---sh-->
``` <!---sh-->
./spinellis
```
@@ -21,7 +21,7 @@ EOF (typically ctrl-d).
Now run again:
```<!---sh-->
``` <!---sh-->
./spinellis
```
@@ -33,7 +33,7 @@ For clang or compilers that won't read from `/dev/tty`, we provide this version.
### Alternate build:
```<!---sh-->
``` <!---sh-->
make clobber alt
```
@@ -42,7 +42,7 @@ and follow the instructions.
### Alternate use:
```<!---sh-->
``` <!---sh-->
./spinellis.alt
```
@@ -51,7 +51,7 @@ EOF (typically ctrl-d).
Now run again:
```<!---sh-->
``` <!---sh-->
./spinellis.alt
```
+8 -8
View File
@@ -1,6 +1,6 @@
## To build:
```<!---sh-->
``` <!---sh-->
make all
```
@@ -11,13 +11,13 @@ might wish to do so.
## Try:
```<!---sh-->
``` <!---sh-->
./westley
```
Also try:
```<!---sh-->
``` <!---sh-->
./try.sh
```
@@ -31,7 +31,7 @@ This version is the original which might not work as you expect nowadays.
### Alternate build:
```<!---sh-->
``` <!---sh-->
make alt
```
@@ -41,7 +41,7 @@ This version is the original which might not work as you expect nowadays.
To see if your compiler has the problem described in the Judges' remarks below,
try:
```<!---sh-->
``` <!---sh-->
./westley.alt
```
@@ -52,7 +52,7 @@ Does it show the same output as `westley`?
Your compiler must parse
```<!---c-->
``` <!---c-->
#define _ -a
-_
```
@@ -62,7 +62,7 @@ conforming ANSI C Preprocessors may object to this: for such
compilers, you can elide the non-standard token-pasting requirement
by changing the #define line to:
```<!---c-->
``` <!---c-->
#define _ F-->00||F-OO--;
```
@@ -71,7 +71,7 @@ code is the original.
You might enjoy looking at the output of:
```<!---sh-->
``` <!---sh-->
cc -E westley.alt.c
```