2393 17.33 KB 566
Pastedown Experiments (New)
By HK-FortySevenCreated: 2021-08-18 23:39:28
Updated: 2021-08-28 14:13:12
Expiry: Never
Pastedown Syntax Experiments
(And a personal guide on how to use it)
Last tested: 2021/08/28@11:00 AST (UTC-4)
Warning: This shit is experimental, and is very likely to change at any time.
Use experimental formatting at your own risk!
Pastedown follows Markdown convention of needing two spaces at the end of each line of text.
If you don't have the two spaces at the end.
Your text will look like this.
Absolutely no spacing at all.
This rule doesn't apply to headings, horizontal lines, code blocks, or tables.
Most Markdown rules apply, and the test text reflects that; Markdown rules can be found here.
Or here, if the link above doesn't work: https://www.markdownguide.org/cheat-sheet
Format | Usage | Notes | Example |
---|---|---|---|
Greentext | Begin line with > |
Only works at the start of a line, can't use in a table | See end of table |
Redtext | Begin line with < |
Only works at the start of a line, can't use in a table | See end of table |
Purpletext | Begin line with @ |
Only works at the start of a line, can't use in a table | See end of table |
Horizontal Line | Begin line with at least 3 minuses - or underscores _ |
Using minuses directly under text will instead create a heading, see next entry \/ | See above table |
Headings | Begin line with 1-6 # , using more pound signs for smaller headings |
Limit of 6 before formatting breaks | See above table |
Italics | Quote text with * |
Will span multiple lines until terminated | Sample Text |
Bold | Quote text with ** |
Will span multiple lines until terminated | Sample Text |
Bolded Italics | Quote text with *** |
Will span multiple lines until terminated | Sample Text |
Inline Code | Quote text with ` or `` |
Will span multiple lines until terminated | Sample Text |
Code Block | Begin and end a group of lines with ``` |
Will span multiple lines until terminated | See end of table |
Strikethrough | Quote text with ~~ |
Will span multiple lines until terminated | |
Hyperlinks | Write as [Link text](URL) |
Follow site rules regarding links | Ponepaste ko-fi |
Inline images | Write as !(Text if image unavailable)[Image URL] |
/mlp/ SFW rules apply, see site rules | ![]() |
Bullet list | Begin line with + , - , or * |
Continues spanning until broken with two newlines | See end of table |
Ordered list | Begin line with 1. or another number |
Continues spanning until broken with two newlines | See end of table |
Tables | Columns with | |
Nothing to add | Nigger, you're reading one right now |
Greentext
to
to
to
Lists
- Bullet lists are started like so
- Additional points are added in similar fashion
But not adding a new bullet point will add the next line(s) to the previous point -
- Bullet points can be nested
-
-
- All formatting rules continue
to
apply
Bullet points can be broken with two newlines
- All formatting rules continue
-
Like so
- Ordered lists work the same way
- Down to the added points
And additional details -
- And nesting
-
-
- Arbitrary numbers can be used instead of 1 to start the list off
-
-
-
-
- But subsequent entries can only increment the list, never decrement it
All formatting rules continueto
apply
Ordered lists can be broken with two newlines
- But subsequent entries can only increment the list, never decrement it
-
-
Like so
Code Blocks
Begin with three backticks on the previous line
Notice that all of a sudden, the normal Markdown rules about needing two spaces after each line no longer apply
End it with three backticks on the following line
Old guide text from 2021/08/18@23:00 AST (UTC-4):
Greentext
It deletes quote arrows; the above line started with >
All formatting rules continue to
apply
Greentext continues to greenify all of your text until broken with two newlines
Like so
Green Lists
Greentext colouring can apply to lists as well:
- Then begin your list,
-
- And you're off to the races
- Works the same on ordered lists
- Both greentext and the list can be broken with two newlines
- And you're off to the races
Like so
Old, pre-tables prose guide begins:
Pastedown works as an extension to Markdown, so if you don't know Markdown, brush up on it here: https://www.markdownguide.org/cheat-sheet
I'll cover the features anyways, but the most important thing to remember is this:
Always end your lines with two spaces.
Because if you don't,
Your lines of text.
Will look like this.
Instead of what.
You actually intended.
Greentext works, but not the way you're used to in standard greentext formatting.
You start a greentext block the usual way, with a >symbol, like so:
From this point on, barring normal Markdown formatting, all of your text is green, whether you use quote arrows or not.
You can stop your text from being green by using two newlines:
And text will stop being green.
Line breaks, as you've already seen, are inserted with at least three underscores (_).
You can bold or italicize your text using asterisks (*
), using them like quotation marks to format the text.
One set of asterisks will italicize,
Two sets will bold,
Three sets will do both.
You can also insert monospace text, or code blocks, using backticks (`
) in the same way:
Break out the ye olde ASCII art!
Single backticks work just like double backticks, but don't wrap to one another.
Triple backticks also work.
You can insert any kind of formatting on a single line, as many times as you want, for however long you want
.
You can insert any kind of formatting on a single line, as many times as you want, for however long you want
.
Headings can be inserted by beginning a line with one to five pound signs (#).
The more you use,
The smaller the heading becomes.
And at the smallest size,
It's not too different from normal bold text,
As seen right here.
You can also create bullet-point lists in Pastedown, by starting a line with either a plus (+), minus (-), or an asterisk (*);
- Lists look like this.
- Keep adding bullets with the right symbol,
Or don't, and keep adding to the previous bullet point. - You can also nest bullet points,
-
- Just like so.
-
-
- All rules about formatting still apply, so
go
nuts.
Once you're done with the bullet list, two newlines will break it, just like with greentext.
- All rules about formatting still apply, so
-
Like so.
- Like so.
All the same rules apply, -
- Down to the nesting,
-
-
- And the copious formatting
options
.
Break both with two newlines.
- And the copious formatting
-
Like so.
The not-guide portion is over now.
Raw testing text follows:
testing for newfags
▴
▴ ▴
testing formatting spacing weirdness
testing formatting spacing weirdness
testing formatting spacing weirdness
testing formatting spacing weirdness
testing formatting spacing weirdness
test text
Testing heading spacing
test text
test text
Testing heading spacing
test text
Testing heading spacing
testing forced newlines
testing forced newlines
testing forced newlines
testing forced newlines
testing for greentext breakup between tons of newlines
testing for greentext breakup between tons of newlines
colour banding weeeeeeeeeeee
testing >text colour testing text >colour
testing <text colour testing text <colour
testing @text colour
testing text @colour
Linkification works as expected: https://ponepaste.org/raw/5493
I strongly recommend to open the raw version of this paste side by side with the normal version
Newlines require two spaces at the end of each sentence to delineate a newline
Exactly like Markdown does
If you don't
Your lines end up
Looking like
This instead
Regardless of quote arrows
or conflicting formatting
or conflicting formatting
or conflicting formatting
or conflicting formatting
The only thing that breaks it
Is a double newline
If it does, test for the same behaviour
If it does, test for the same behaviour
Greentext arrows insert a newline before it if there isn't a preceding newline already, as shown above
Headings work as expected
They don't require doublespace at the end
But you should include it anyways
Because of the fucky nature of Markdown
Allow me to pad this out further
To see how deep the heading depth goes
####### Look into my headings
######## You are getting sleepy
- Bulletpoints are also supported
- Either a single plus, minus, or an asterisk can be used for them
You must prepend one of those to add an entry to the bullet list
Otherwise it's considered as part of the same bullet entry
As with the greentext, two newlines breaks this
Allowing you to once again enter text normally
-
Testing nested lists
-
- Testing nested lists
-
-
- Testing nested lists
-
-
Testing bullets
-
with asterisks
with more detail -
- with nesting
with nested detail
- with nesting
-
-
- with nesting
with nested detail
- with nesting
-
-
Testing bullets
-
with minuses
with more detail -
- with nesting
with nested detail
- with nesting
-
-
- with nesting
with nested detail
- with nesting
-
Italics works exactly like it does in Markdown
It can be started and stopped at any point in the line
Bolding works exactly like it does in Markdown
It can be started and stopped at any point in the line
Bolding and italics works exactly like it does in Markdown
It can be started and stopped at any point in the line
Italics can be separated out but the bolding can't be, so be aware of that
Code/Verbatim blocks are also here
They work just like bolding
and can be stopped and started wherever
Testing codeblock multi-line spanning Testing codeblock multi-line spanning
It works, but it doesn't respect doublespace newlines
Testing if italics exist in Pastedown
Yes, bold-italics do exist in Pastedown
Testing for only italics in Pastedown
- Testing ordered lists
Testing extra list detail - Testing ordered lists
- Testing ordered lists
-
- Testing nested ordered lists
-
-
- Testing funky nesting order
-
-
-
-
- Testing funky nesting order
-
-
Testing single-backquote codeblocks
Testing minus pagebreaks
testing spanning codeblock
int void {
gayniggers.from(outer.Space)
}
Testing footnotes 1
- Testing definitions
- term
- definition
Testing strikethrough
- [x] Testing task list
- [ ] Testing task list
- [ ] Testing task list
- [x] Testing task list
Testing | Tables |
---|---|
Tables | Tested |
Testy | Tables |
Testing | Tables | Even | More |
---|---|---|---|
>green test | <red test | @purple test | plain test |
black test | huwite test | pink test | >pastrami sandwich test |
all kinds of testing | all kinds of testing | i love every kind of testing | yeah |
Testing URL embedding
Markdown
Testing image embedding
Testing pagebreak creation threshold:
_
__
More experiments pending
Previous experiments with Pastedown's old syntax highlighting follow
Doublespace edited so they actually display correctly in the new Pastedown
https://ponepaste.org/620
**boldtext
--Thin wireframe
++Thick wireframe
Big heading
Smaller heading
Same smaller heading
Ad infinitum
Line break
Bold continues to infinity regardless of enclosing or breaks like here
++Same is true++ of other styles
-- Same is true -- of other styles
As a result:
On a regular nonhighlighted line,
Highlighting can start >abruptly from anywhere
Highlighting can start <abruptly from anywhere
Highlighting can start @abruptly from anywhere
Highlighting can start **abruptly from anywhere
Highlighting can start --abruptly from anywhere
Highlighting can start ++abruptly from anywhere
// test
\ test
|| test
test
!! test
"" test
test
- $$ test
- ££ test
- %% test
- ^^ test
- && test
- : test
;; test
,, test
.. test
?? test
~~ test
== test
[[ test ]]
{{ test }}
(( test ))
Not related to Pastedown, just experimenting with the "Highlight" button
Diff syntax highlighting experiments copypasted here for comparison's sake
Again, doublespace edited so the lines actually display correctly
https://pastebin.com/TBwtEhAJ
https://pastebin.com/raw/TBwtEhAJ
A quick demo of Diff syntax trickery.
For both past and present writefriends alike.
- It also greenlines for plus signs
++ For reasons obvious to anyone who works with diffs
+++ Note the different rendering at three pluses
- Ditto for minuses
-- Again, obvious for diff jugglers
--- Again, third set of minuses is different
! Exclamation marks also render differently
!! This one is more editor specific however;
!!! Pastebin renders all exclaims as blue
!!!! But some editors only render with the one
!!!!! YMMV
-
asterisks normally don't render
in the pastebin syntax highlighter
* until the third set
*** after this, some editors do highlight asterisks beyond this point
not often used, but fun nonethelessStrangely, whitespace does render differently on some platforms
But not on Pastebin
This one is probably more trouble than it's worth
Best to leave that highlighting out, if possible
==== And some final
% Editor-specific non-Pastebin
1 Highlighting oddities
- <p>The footnote test  <a href="#fnref1:1" rev="footnote" class="footnote-backref">↩</a></p>
by HK-FortySeven
by HK-FortySeven
by HK-FortySeven
by HK-FortySeven
by HK-FortySeven