add hack-a-round for language specified markdown code blocks

When language is specified in a markdown code block such as:

````
```c
    printf("Hello, world!\n");
```
````

is used, the resulting HTML as produced by `pandoc(1)` combined
with our revised `ioccc.css` is not intent the code block well.

A temporary "_hack-a-round_" is to turn the "markdown code language
specifier" into an HTML comment.  For example:

````
```<!---c-->
    printf("Hello, world!\n");
```
````

This commits turns off existing markdown code language specifiers
for now, while preserving our ability to restore them in the future
when a better  "_hack-a-round_" to the "markdown code language
specifier" problem is found.

The HTML impact if this "_hack-a-round_" is to produce HTML that
looks like this:

```
<pre class="&lt;!---c--&gt;"><code> .. </code></pre>
```

We might be able to create a complex set of classes for each markdown
code language (there won't be very many) in `ioccc.css`, or we might
find a more general CSS (or maybe `pandoc(1)`?) solution.

For now, this hack-a-round will have to do.
This commit is contained in:
Landon Curt Noll committed 2024-04-04 14:50:38 -07:00
1 parent 3919df50fb
commit b66c79254a
700 files changed
+7052 -7056

No files matched your search

+7 -7
View File
@@ -37,7 +37,7 @@ Because the `author_handle` is used to form a JSON filename, the string must be
lower case POSIX safe string. Furthermore, the `author_handle` must be an ASCII
string that matches this regexp:
```re
```<!---re-->
^[0-9a-z][0-9a-z_]*$
```
@@ -76,7 +76,7 @@ in the case of [2005/anon](/2005/anon/anon.c).
Anonymous `author_handle`'s match this regexp:
```re
```<!---re-->
Anonymous_[0-9][0-9][0-9][0-9][.0-9]*$
```
@@ -105,7 +105,7 @@ Non-numeric `year` strings are lower case.
A `year` string matches this regexp:
```re
```<!---re-->
[0-9a-z][0-9a-z][0-9a-z][0-9a-z]
```
@@ -130,7 +130,7 @@ A `dir` is a POSIX safe string that holds an winner.
A `dir` is a string that matches this regexp:
```re
```<!---re-->
^[a-z][0-9a-z.-]*$
```
@@ -164,7 +164,7 @@ an `author` and the `winners` they submitted are to be listed.
A `sort_word` match this regexp:
```re
```<!---re-->
^[a-z][0-9a-z]*
```
@@ -281,7 +281,7 @@ Run the script from the top level directory. The output should end in ":1".
For example, this command should not produce any output.
```sh
```<!---sh-->
tmp/awards_check.sh | grep -v ':1$'
```
@@ -419,7 +419,7 @@ Temporary tool used to generate the `author/author_handle.json` files.
The following command, executed in this directory, created the `author/` directory:
```sh
```<!---sh-->
rm -rf ../author ; ./gen_author_json.sh author_handle.txt author.csv author_wins.csv ../author
```
+2 -2
View File
@@ -156,7 +156,7 @@ returns and appending a newline if it was missing.
Fixing involves these actions:
```sh
```<!---sh-->
tr -d '\015' < input.csv > tmp.csv
echo >> tmp.csv
mv -f tmp.csv input.csv
@@ -342,7 +342,7 @@ A tool to run another tool over all _YYYY/dir_ entry directories.
Examples:
```sh
```<!---sh-->
./run_all.sh -v 3 ./fake.gen_index.sh
./run_all.sh -v 1 ./gen_entry_json.sh
```