replaced the test text

This commit is contained in:
Izaya 2018-06-21 00:02:16 +10:00
parent 3a95657d99
commit 711b6f2157

View File

@ -1,13 +1,47 @@
local md = require "mdparse"
teststr = [[This is a test markdown string. It contains formatting including bold and italics, and [links](somewhere else) too.
teststr = [[# Minitel
An easy-to-implement networking protocol for OpenComputers. Not to be confused with the [French computer network of the same name](https://en.wikipedia.org/wiki/Minitel).
Here is a paragraph break, I suppose.
Minitel aims to implement layers 3, 4 and 5 of the OSI model.
Here's another. ]]
## Layers
### Layer 3
[Layer 3](protocol-3.md) implements addressing, meshing and datagram transmission.
### Layer 4
[Layer 4](protocol-4.md) implements ordered message delivery
### Layer 5
[Layer 5](protocol-5.md) implements reliable, ordered, bidirectional streams.
## Implementations
### OpenOS
- [Reference implementation for OpenOS](OpenOS/README.md)
### KittenOS
- [Minitel for KittenOS NEO](KittenOS/README.md)
### Embedded devices
- [Microtel](Embedded/microtel/README.md)
## Application-layer protocols
This repository also contains a number of implementations and specifications for application-layer protocols using Minitel.
- [FRequest](FRequest/FRequest-protocol.md)
- [Minitel Mail](MMail/MMail-protocol.md)
## Development and discussion
Code and documentation is hosted in the [Github repository](https://github.com/XeonSquared/OC-Minitel).
Discussion takes place in, among other places, the [#SKS IRC channel on EsperNet](irc://irc.esper.net/#SKS) ([webchat](https://webchat.esper.net/?channels=SKS))
]]
lines, links = md.reflow(teststr, 40)
print("0\t"..("1234567890"):rep(4))
for k,v in pairs(lines) do print(k,v) end
print("\nLinks:")
for k,v in pairs(links) do print(k,v[1], v[2], v[3]) end
for k,v in pairs(links) do print(k,v[1], v[2], v[3], v[4]) end