Yessiest
2 months ago
5 changed files with 77 additions and 172 deletions
-
66bin/mdpp
-
13classes
-
0lib/rbmark.rb
-
21rbmark.gemspec
-
149test.md
@ -1,13 +0,0 @@ |
|||
Bold [x} |
|||
Italics [x] |
|||
Underline [x] |
|||
Strikethrough [x] |
|||
CodeInline [x] |
|||
Link [x] |
|||
Image [x] |
|||
Headings [x] |
|||
CodeBlock [x] |
|||
QuoteBlock [x] |
|||
ULBlock [x] |
|||
OLBLock [x] |
|||
TableBlock [] |
@ -0,0 +1,21 @@ |
|||
# frozen_string_literal: true |
|||
|
|||
Gem::Specification.new do |s| |
|||
s.name = 'rbmark' |
|||
s.version = '0.5' |
|||
s.summary = <<~SUMMARY |
|||
Modular, extensible, HTML-agnostic Markdown parser |
|||
SUMMARY |
|||
s.description = <<~TEXT |
|||
RBMark is a Markdown parser that represents Markdown in a DOM-like |
|||
object structure, allowing for other interfaces to produce more |
|||
complex translators from Markdown to any given format. |
|||
TEXT |
|||
s.authors = ['yessiest'] |
|||
s.email = 'yessiest@text.512mb.org' |
|||
s.license = 'Apache-2.0' |
|||
s.homepage = 'https://adastra7.net/git/Yessiest/rubymark' |
|||
s.files = Dir['lib/**/*.rb'] + Dir['bin/*'] |
|||
s.required_ruby_version = '>= 3.0.0' |
|||
s.executables = ['mdpp'] |
|||
end |
@ -1,149 +0,0 @@ |
|||
# Header level sadga kjshdkj hasdkjs hakjdhakjshd kashd kjashd kjashdk asjhdkj ashdkj ahskj hdaskd haskj hdkjash dkjashd ksajdh askjd hak askjhdkasjhdaksjhd sakjd 1 |
|||
|
|||
> Block quote text |
|||
> |
|||
> Second block quote paragraph |
|||
> Block quote **bold** and *italics* test |
|||
> Block quote **bold *italics* mix** test |
|||
|
|||
> Nested block quote test |
|||
> > with a very stupid secondary quote syntax |
|||
this should end the block quote btw |
|||
|
|||
## Header level 2 |
|||
|
|||
also header level 2 |
|||
--- |
|||
|
|||
also header level 1 |
|||
=== |
|||
|
|||
not a header level2 |
|||
---asdlkashdlkasjd |
|||
|
|||
not a header level1 |
|||
===asdajlsdkjlsd |
|||
|
|||
not a header level2 |
|||
--- |
|||
|
|||
not a header level1 |
|||
=== |
|||
[link](http://example.com) |
|||
![image alt text](http://example.com) |
|||
|
|||
``` plaintext |
|||
code *block* |
|||
eat my shit |
|||
``` |
|||
|
|||
> It is also of importance to note that this code is a hello world program, |
|||
> written entirely in C++. |
|||
> |
|||
> ```cpp |
|||
> int main() { |
|||
> cout << "Hello **world!**"; |
|||
> } |
|||
> ``` |
|||
|
|||
> theoretical failure test case |
|||
> **bold** **with space** |
|||
paragraph with ``inline code block`` |
|||
|
|||
- Unordered list element 1 |
|||
- Unordered list element 2 |
|||
|
|||
1. Ordered list element 1 |
|||
2. Ordered list element 2 |
|||
|
|||
1. [Link](https://ass.com) |
|||
2. [Lv2](https://ass.com) |
|||
3. [Lv2](https://anus.com) |
|||
4. shit |
|||
|
|||
This is not a list |
|||
- because it continues the paragraph |
|||
- this is how it should be, like it or not |
|||
|
|||
- This is also not a list |
|||
because there is text on the next line |
|||
|
|||
- But this here is a list |
|||
because the spacing is made correctly |
|||
|
|||
more so than that, there are multiple paragraphs here! |
|||
|
|||
- AND even more lists in a list! |
|||
- how extra |
|||
- And this is just the next element in the list |
|||
|
|||
1. same thing but with ordered lists |
|||
ordered lists have a little extra special property to them |
|||
|
|||
the indentations are always symmetrical to the last space of the bullet's number |
|||
10. i.e., if you look at this here example |
|||
this will work |
|||
|
|||
obviously |
|||
|
|||
|
|||
1. But this |
|||
10. Won't |
|||
because the indentation doesn't match the start of the line. |
|||
|
|||
generally speaking this kind of insane syntax trickery won't be necessary, |
|||
but it's just better to have standards than to have none of them. |
|||
|
|||
an unfortunate side effect of this flexibility should also be noted, and |
|||
it's that markdown linters don't like this sort of stuff. |
|||
Yet another reason not to use a markdown linter. |
|||
|
|||
- And this is just the lame stupid old way to do this, as described by mardkownguide |
|||
|
|||
> just indent your stuff and it works |
|||
> really it's as simple as that. |
|||
> bruh |
|||
|
|||
there can be as many as infinite number of elements appended to the list that way. |
|||
|
|||
you can even start a sublist here if you want to |
|||
|
|||
- here's a new nested list |
|||
- could you imagine the potential |
|||
|
|||
and here's an image of nothing |
|||
|
|||
![image](https://example.com/nothing.png) |
|||
|
|||
- I may also need to merge lists for this to work properly |
|||
|
|||
### Third level header |
|||
|
|||
text |
|||
|
|||
#### 4th level text |
|||
|
|||
- list |
|||
- > list with blockquote |
|||
> quote |
|||
> more of the same quote |
|||
> |
|||
> - inner list |
|||
> - list2 |
|||
> |
|||
> ```plaintext |
|||
> code block inside a quote |
|||
> could you imagine that shit |
|||
> eh |
|||
> ``` |
|||
|
|||
--- |
|||
|
|||
gnomo |
|||
|
|||
indented preformatted text |
|||
indented preformatted text |
|||
function() peepeeopoopoo { |
|||
puts ass |
|||
} |
|||
indented preformatted text |
Write
Preview
Loading…
Cancel
Save
Reference in new issue