Minor bugfix

This commit is contained in:
Robin Malley 2020-05-17 13:17:15 -04:00
parent 1863e14b34
commit 37e1b0a6c0
1 changed files with 30 additions and 30 deletions

View File

@ -76,36 +76,36 @@ local grammar = P{
chunk = V"line"^0 * V"plainline" * V"ending"
}
local text = [[
this is **a big** test with ''italics''!
we need to > sanitize < things that could be tags
like really <b> badly </b>
words can include any'single item without=penalty
Can you use '''one tag ==within== another tag'''?
let's see if [spoiler]spoiler tags work[/spoiler]
things might even __go over
multiple lines__ blah
Let's test out those [code]
code tag,s and see how well
they work
here's ome
preformated <with injection>
text
[/code]
> Or have blank lines
--local text = [[
--this is **a big** test with ''italics''!
--we need to > sanitize < things that could be tags
--like really <b> badly </b>
--words can include any'single item without=penalty
--Can you use '''one tag ==within== another tag'''?
--let's see if [spoiler]spoiler tags work[/spoiler]
--things might even __go over
--multiple lines__ blah
--Let's test out those [code]
--code tag,s and see how well
--they work
--here's ome
--preformated <with injection>
--text
--[/code]
--> Or have blank lines
one important thing is that greentext > should not start in the middle of a line
> this next line is a green text, what if I include **markup** inside it?
< and after '''it is''' a pinktext
> because of some of these restrictions **bold text
cannot go over multiple lines** in a green text
__and finally__ there might be some text with '''
incomplete syntax <b> with injection</b> !!!!
]]
--one important thing is that greentext > should not start in the middle of a line
--> this next line is a green text, what if I include **markup** inside it?
--< and after '''it is''' a pinktext
--> because of some of these restrictions **bold text
--cannot go over multiple lines** in a green text
--__and finally__ there might be some text with '''
--incomplete syntax <b> with injection</b> !!!!
--]]
--return function(text)
--return table.concat({grammar:match(text .. "\n")}," ")
--end
for k,v in pairs({grammar:match(text)}) do
print(k,":",v)
return function(text)
return table.concat({grammar:match(text .. "\n")}," ")
end
--for k,v in pairs({grammar:match(text)}) do
--print(k,":",v)
--end