56 lines
1.6 KiB
Plaintext
56 lines
1.6 KiB
Plaintext
features
|
|
-convert a subset of markdown into html and gemini files
|
|
-images not supported
|
|
-tables converted to ascii tables for gemtext and html
|
|
-put in ```blockquotes```
|
|
-for code highlighting should work for HTML
|
|
-for code use ```block quotes``` for gemtext
|
|
-for text decorations like italics, bold, underline
|
|
-HTML use <i> <b> <u> tags
|
|
-Gemtext surround with chars like /word/ *word* _word_
|
|
|
|
-inline links are referenced using reference numbers [1] and are
|
|
listed below each paragraph. A full list of all links/references
|
|
are displayed at the bottom. This scheme will work for both HTML
|
|
and gemini
|
|
|
|
example:
|
|
Implementing RC5 in Lua presented some minor challenges. Lua
|
|
likes to start its data structures at index 1, whereas C starts
|
|
at an index of 0. Converting the pseudocode from the paper [1]
|
|
to start counting at 1 instead of 0 took a little time, however
|
|
once you get used to the Lua way [2] things become pretty easy
|
|
to understand.
|
|
|
|
[1] paper
|
|
[2] Lua way
|
|
|
|
-generate site map
|
|
|
|
organized into three directories
|
|
ssg-lua/
|
|
markdown/
|
|
html/
|
|
gemini/
|
|
|
|
first develop the markdown to gemtext program
|
|
second write the markdown to html program
|
|
|
|
gemtext has 3 headings
|
|
#
|
|
##
|
|
###
|
|
markdown has 6. round 2 to 3. and round 4 and 6 to 5.
|
|
|
|
gemtext supports unordered lists
|
|
* item
|
|
* item
|
|
|
|
convert ordered lists to unordered lists before compiling to HTML and gemtext
|
|
|
|
gemtext links look like this
|
|
=> https://example.com A cool website
|
|
=> gopher://example.com An even cooler gopherhole
|
|
=> gemini://example.com A supremely cool Gemini capsule
|
|
=> sftp://example.com
|