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
|
||||
```
|
||||
|
||||
@@ -18,14 +18,14 @@ For more detailed information see [2005 sykes bugs](../../bugs.html#2005_sykes).
|
||||
|
||||
## To use:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./sykes binary_file
|
||||
```
|
||||
|
||||
|
||||
## Try:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./try.sh
|
||||
```
|
||||
|
||||
@@ -44,7 +44,7 @@ We downloaded the [ROM](https://en.wikipedia.org/wiki/ROM_image) contents to use
|
||||
the [emulator](https://en.wikipedia.org/wiki/Emulator) in
|
||||
[PET](https://en.wikipedia.org/wiki/Commodore_PET) mode as follows:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
wget http://www.zimmers.net/anonftp/pub/cbm/firmware/computers/pet/basic-2-c000.901465-01.bin
|
||||
wget http://www.zimmers.net/anonftp/pub/cbm/firmware/computers/pet/basic-2-d000.901465-02.bin
|
||||
wget http://www.zimmers.net/anonftp/pub/cbm/firmware/computers/pet/edit-2-n.901447-24.bin
|
||||
@@ -53,7 +53,7 @@ the [emulator](https://en.wikipedia.org/wiki/Emulator) in
|
||||
|
||||
We then created:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
dd bs=2k count=1 if=/dev/zero of=nullfill.bin
|
||||
```
|
||||
|
||||
@@ -79,7 +79,7 @@ Compile the program, then test the
|
||||
[6502](https://en.wikipedia.org/wiki/MOS_Technology_6502#Technical_description)
|
||||
[emulation](https://en.wikipedia.org/wiki/Emulator) like this:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./sykes 6502test
|
||||
```
|
||||
|
||||
@@ -105,7 +105,7 @@ Make sure you have a [terminal
|
||||
window](https://en.wikipedia.org/wiki/Terminal_emulator) of 40x25 chars or
|
||||
bigger, and then run the emulator like this:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./sykes pet.rom
|
||||
```
|
||||
|
||||
@@ -119,13 +119,13 @@ You should see the startup message. Try typing in some
|
||||
There is an optional numeric parameter, which controls the speed. For a
|
||||
slower cursor blink, try
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./sykes pet.rom 6
|
||||
```
|
||||
|
||||
and for faster
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./sykes pet.rom 2
|
||||
```
|
||||
|
||||
@@ -191,7 +191,7 @@ Supplied as a demonstration is a
|
||||
compiled-for-[6502](https://en.wikipedia.org/wiki/MOS_Technology_6502#Technical_description)
|
||||
version a chess program (heh, I found a use for a previous losing entry :) ). Try:
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./sykes chess
|
||||
```
|
||||
|
||||
@@ -306,7 +306,7 @@ from the Internet. This is to avoid directly infringing any copyright.
|
||||
|
||||
What does this do?
|
||||
|
||||
```sh
|
||||
```<!---sh-->
|
||||
./sykes pet.rom -1
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user