it's all downhill from here
This commit is contained in:
parent
8b63d77006
commit
1a9dd30112
1279
lib/blankshell.rb
1279
lib/blankshell.rb
File diff suppressed because it is too large
Load Diff
129
lib/test3.rb
129
lib/test3.rb
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
require_relative 'blankshell'
|
require_relative 'blankshell'
|
||||||
|
|
||||||
structure = PointBlank::DOM::Document.parse(<<~DOC)
|
doc = <<~DOC
|
||||||
Penis
|
Penis
|
||||||
# STREEMER VIN SAUCE JORKS HIS PEANUTS ON S TREeAM
|
# STREEMER VIN SAUCE JORKS HIS PEANUTS ON S TREeAM
|
||||||
> pee
|
> pee
|
||||||
|
@ -20,6 +20,13 @@ structure = PointBlank::DOM::Document.parse(<<~DOC)
|
||||||
PEES
|
PEES
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
[definition]: /url 'title'
|
||||||
|
[definition
|
||||||
|
2
|
||||||
|
]:
|
||||||
|
/long_url_with_varying_stuff
|
||||||
|
(title)
|
||||||
|
|
||||||
> COME ON AND SNIFF THE PAINT
|
> COME ON AND SNIFF THE PAINT
|
||||||
>
|
>
|
||||||
> WITH MEEE
|
> WITH MEEE
|
||||||
|
@ -40,7 +47,120 @@ structure = PointBlank::DOM::Document.parse(<<~DOC)
|
||||||
> < CONTINUATION
|
> < CONTINUATION
|
||||||
> > BREAKER
|
> > BREAKER
|
||||||
COCK
|
COCK
|
||||||
|
|
||||||
|
+ Plus block opens
|
||||||
|
and continues.
|
||||||
|
|
||||||
|
This is the next paragraph of a plus block,
|
||||||
|
and this is a continuation line in the block
|
||||||
|
+ This thing continues the outer block and has a plus sign still.
|
||||||
|
next part
|
||||||
|
- SIMPS LMAO
|
||||||
|
continuation
|
||||||
|
|
||||||
|
This by the way should continue the
|
||||||
|
block but should be a separate
|
||||||
|
paragraph
|
||||||
|
- Next shit
|
||||||
|
|
||||||
|
> INCLUDING INNER QUOTES BY THE WAY
|
||||||
|
WITH INNER PARAGRAPH FALL OFF!!!
|
||||||
|
|
||||||
|
also a paragraph inside this thing
|
||||||
|
|
||||||
|
- BUT CAN WE GET EVEN STUPIDER?????
|
||||||
|
|
||||||
|
> YES WE CAN!!!!
|
||||||
|
|
||||||
|
- Another element
|
||||||
|
|
||||||
|
NOW it breaks
|
||||||
|
1. FREDDY FAZBER???
|
||||||
|
HARHAR HAR HAR HAR
|
||||||
|
HAR HAR HARHAR
|
||||||
|
|
||||||
|
HOLY SHITTO FREDDY FASTBER???
|
||||||
|
AR AR HARHAR HAR
|
||||||
|
HURHURHURHUR
|
||||||
|
|
||||||
|
2. fast
|
||||||
|
ber
|
||||||
|
10. BIG
|
||||||
|
still the same OLblock
|
||||||
|
11) OK NOW THIS IS EBIN
|
||||||
|
different block
|
||||||
|
12930192) THIS still continues because idk why really
|
||||||
|
lmao
|
||||||
|
|
||||||
|
> QUONT PARGRAP
|
||||||
|
WHAT THEF UCK BASSBOOSTED
|
||||||
|
|
||||||
|
>```fencedcode block infoline (up to interpretation)
|
||||||
|
> #THIS should have a very specific structure, not modified by anything
|
||||||
|
>
|
||||||
|
> int main() {
|
||||||
|
> int i = 1;
|
||||||
|
> if (i > 0) {
|
||||||
|
> printf("anus\\n");
|
||||||
|
> }
|
||||||
|
> return 0;
|
||||||
|
> }
|
||||||
|
>```
|
||||||
|
|
||||||
|
Also code block
|
||||||
|
|
||||||
|
Hello mario
|
||||||
|
|
||||||
|
also these should continue so that's a thing
|
||||||
|
|
||||||
|
- Thematic break test
|
||||||
|
- - - - - - - - - - - - - - - - - - - - -
|
||||||
|
- Above should be a thematic break, not a list containing a thematic break
|
||||||
|
|
||||||
|
but what if
|
||||||
|
--------------
|
||||||
|
WRONG????
|
||||||
|
|
||||||
|
aaa
|
||||||
|
bbb
|
||||||
|
ccc
|
||||||
|
|
||||||
|
now it's time to CUHHHMMMMMMM
|
||||||
|
- <amongus:thisis_an_autolink>
|
||||||
|
- <amongus:but this isn't>
|
||||||
|
- <peeee:nis> peepee <peee:peeeeeeinis> Pe
|
||||||
|
- `cum on <` hogogwagarts ><cum:on`>hogogwagarts`
|
||||||
|
- ``` test `should work tho `` and this should be continued` ````
|
||||||
|
- \\<amongus:bumpalumpa>
|
||||||
|
- `` \\<cum:amongus> ```
|
||||||
|
- \\```amongus``
|
||||||
|
- ``amongus``\\`
|
||||||
|
- 
|
||||||
|
- moretests)after
|
||||||
|
- more tests  after
|
||||||
|
- more tests  'valid') after
|
||||||
|
- next test
|
||||||
|

|
||||||
|
amongus
|
||||||
|
- 
|
||||||
|
- [outer](/poopoo 'AAAAAA')
|
||||||
|
- [amongus][definition]
|
||||||
|
- *emphasis on multiple words*
|
||||||
|
- **strong emphasis on multiple words**
|
||||||
|
- infix**emphasis**block
|
||||||
|
- no_infix_empahsis
|
||||||
|
- _emphasis_
|
||||||
|
- __strong emphasis__
|
||||||
|
- __nested __strong__ emphasis__
|
||||||
|
- __(__this__)__
|
||||||
|
- *among us*** ***vr*
|
||||||
|
- *among **us*vr****
|
||||||
|
- *among **us *vr****
|
||||||
|
- *among**us*
|
||||||
|
- [*outer*](/poopoo 'AAAAAA')
|
||||||
DOC
|
DOC
|
||||||
|
|
||||||
|
structure = PointBlank::DOM::Document.parse(doc)
|
||||||
def red(string)
|
def red(string)
|
||||||
"\033[31m#{string}\033[0m"
|
"\033[31m#{string}\033[0m"
|
||||||
end
|
end
|
||||||
|
@ -49,10 +169,11 @@ def yellow(string)
|
||||||
end
|
end
|
||||||
|
|
||||||
def prettyprint(doc, indent = 0)
|
def prettyprint(doc, indent = 0)
|
||||||
closed = doc.properties[:closed]
|
puts "#{yellow(doc.class.name.gsub(/\w+::DOM::/, ''))}: "\
|
||||||
puts "#{yellow(doc.class.name.gsub(/\w+::DOM::/,""))}#{red(closed ? "(c)" : "")}: #{doc.content.inspect}"
|
"#{doc.content.inspect} "\
|
||||||
|
"#{doc.properties.empty? ? '' : red(doc.properties.inspect)}"
|
||||||
doc.children.each do |child|
|
doc.children.each do |child|
|
||||||
print red("#{" " * indent} - ")
|
print red("#{' ' * indent} - ")
|
||||||
prettyprint(child, indent + 4)
|
prettyprint(child, indent + 4)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue