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="<!---c-->"><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:
1 parent
3919df50fb
commit
b66c79254a
700 files changed
+7052
-7056
No files matched your search
+11
-11
@@ -1,6 +1,6 @@
|
||||
## To build:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
make
|
||||
```
|
||||
|
||||
@@ -8,7 +8,7 @@ If you wish to change the size (see the [Author's remarks](#authors-remarks)
|
||||
below) you can do so with the `SIZE` variable. For instance you can do:
|
||||
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
make clobber SIZE=50,50 all
|
||||
```
|
||||
|
||||
@@ -29,7 +29,7 @@ For more detailed information see [2013 endoh4 bugs](../../bugs.html#2013_endoh4
|
||||
|
||||
## To use:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./endoh4 < file
|
||||
./endoh4.sh file
|
||||
```
|
||||
@@ -41,7 +41,7 @@ line it will feed to the program [endoh4.c](endoh4.c).
|
||||
|
||||
## Try:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./endoh4.sh cube.txt
|
||||
```
|
||||
|
||||
@@ -51,13 +51,13 @@ The author recommends the use of xterm.
|
||||
|
||||
For an example, if you are a football/soccer fan, try:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./endoh4.sh solids/archimedian-solid/a11-truncated-icosahedron.txt
|
||||
```
|
||||
|
||||
You can provide more than one file:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./endoh4.sh solids/archimedian-solid/a11-truncated-icosahedron.txt cube.txt
|
||||
```
|
||||
|
||||
@@ -66,7 +66,7 @@ Hit ctrl-c/intr to go to the next file.
|
||||
If you wish to change the size to `50,50` without passing any arg:
|
||||
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
SIZE=50,50 ./endoh4.sh
|
||||
```
|
||||
|
||||
@@ -115,7 +115,7 @@ clang, and tcc. It should not trigger warnings with `-pedantic` and `-Wextra`.
|
||||
|
||||
You may want to use `tput` to hide the terminal cursor.
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
tput civis
|
||||
./endoh4 < cube.txt
|
||||
tput cnorm
|
||||
@@ -123,7 +123,7 @@ You may want to use `tput` to hide the terminal cursor.
|
||||
|
||||
or
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./endoh4.sh cube.txt
|
||||
```
|
||||
|
||||
@@ -131,14 +131,14 @@ or
|
||||
|
||||
You can change the screen size. Let the aspect ratio be about 3:1.
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
cc -DS=120,40 -o endoh4 endoh4.c
|
||||
```
|
||||
|
||||
The shape of this code is the geometric net of a regular tetrahedron.
|
||||
So, try:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./endoh4 < endoh4.c # or ./endoh4.sh
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user