Thomas Lynch
473955fd35
Remove test
4 years ago
Thomas Lynch
b20ca7cc20
Capcode input changes reference #222
...
If a user is board owner/mod, use higher capcode only if explicitly entered, else use board owner/mod capcode
Strip extra repititions
Default back to stafflevel for perm if theres a mismatch
4 years ago
Thomas Lynch
044a9bf490
basic video link embed button script, can be extended for more providers easily
4 years ago
Thomas Lynch
1713291ec7
Unbreak code blocks after new dice roll fix
...
The splitregex in the markdown function didnt include ther ```'s in the match, because it doesnt include them in the code block
So when the prepare function ran, and joined the text back together, it wouldn't have any ```'s, so the code blocks would never be split or rendered.
So quick fix was add a second one that includes the ```'s when doing the dice prepare function, so it wont break the code blocks
references #214
4 years ago
some random guy
04b2b21d95
fix dice roll math
...
In the old implementation, if you had for example 2 dice, you could only roll
even numbers, which is clearly wrong.
Also reduced the max numdice to 99 to not DoS the server with large numdice
values.
4 years ago
some random guy
5a093ce936
do not reroll dice when re-rendering markdown
4 years ago
fatchan
6cf31b5ef3
make titles not a greedy regex
4 years ago
fatchan
2744d7dbe7
-refactor message markup handler to separate function
...
-refactor name/tripcode/capcode handler to separate function
-use new methods in places like news, announcements and new posts
-more structure and logic for post editing
4 years ago
fatchan
e897b1c161
dice regex issue
4 years ago
fatchan
8836ba6ba1
quotes changes for the 10000th time
4 years ago
fatchan
8cec748ff9
fix quote bug for cross guotes being invalid when missing a number even if board exists
5 years ago
fatchan
e6d7785793
migration move files from /img to /file since it can contain more than just images
5 years ago
fatchan
f2c707c867
highlight.js force ignore_illegal for manually language selected blocks
5 years ago
fatchan
75166124e7
oversight in linkmatch for brackets and detected changes
5 years ago
fatchan
c1cff0284d
improve dicerolls, uncomment invalid quotes
5 years ago
fatchan
8b5c88332c
scuffed way to make some links in parentheses work better
5 years ago
fatchan
4457added2
greentext with quotes changes
5 years ago
fatchan
31bec034ba
make markdown easier to add new classes
5 years ago
fatchan
9ce66a303d
change config to js file so it an include comments
5 years ago
fatchan
f32a392d0a
code theme changes to allow manually inputting language
5 years ago
fatchan
b38446201a
change how auto scroll scrolls to not change window hash, and make threshold gt not gte
5 years ago
fatchan
3a67e18695
make markdown code shorter
5 years ago
fatchan
ac0cb93b06
remove themes from footer, prep for settings UI, add code theme to board settings
5 years ago
fatchan
1df453e5d3
much more progress and proper styling for hide and hide by ID with new dropdown
5 years ago
fatchan
427fe315f7
styling fixes
5 years ago
fatchan
8f81cc7d57
dont show language or relevance when < 5
5 years ago
fatchan
6654aac041
make all that v a little cleaner
5 years ago
fatchan
23c9079c03
use highlight.js for syntax highlighting in code blocks of posts
5 years ago
fatchan
0915d7247b
major change to post markdown to use chunks so syntax highlighting can come in future
5 years ago
fatchan
8d092b8f1d
improve post markdown to use chunks so that code blocks can be processed separately and not be broken by other styles, also opens the door to using a custom code parser later on that includes syntax highlighting
5 years ago
fatchan
9bd6aa4339
do links last to prevent surrounding markdown from breaking link
5 years ago
fatchan
f0aa36997e
update webring, improve boardlist and make tables a little wider
5 years ago
fatchan
b66272577c
add a small utility in markdown to get doamins for later so I can add alt links e.g. invidious references #2
5 years ago
fatchan
45ed6a6bce
when thread pages not needed immediately, add it as a task in the queue instead of doing it on the web server process
5 years ago
fatchan
82a1842643
thread moving update markup, sets aggregate and keeps correct reply/file counts and doesnt clash with adding sticky, etc since if threads are moved they have those flags removed
5 years ago
fatchan
5f455831a4
spoiler multiline
5 years ago
fatchan
219963096f
markdown fix op on quote not being shrunk and general appearance improvements for truncation and omission messages, and reply links
5 years ago
fatchan
883020cfe9
news page, and ability to add or delete news from global manage page, by auto level 0 accounts only
5 years ago
fatchan
92ad72cb5c
move diceroll to other file and fix markdown for image
5 years ago
fatchan
d412be3450
dice rolls ##XdY+/-Z, and adjust post styling to accommodate it references #2
5 years ago
fatchan
56dfa48160
add announcements to boards, same styling as posts and fix the strict-origin to same-origin for links
5 years ago
fatchan
73edb8d51c
non-greedy markdown, and add faq+custom pags to gulpfile
5 years ago
fatchan
981f257d45
dont need access to Posts in markdown for posting
5 years ago
fatchan
0a0d5512be
fix for file with no name, only extension having missing extension after uploading
5 years ago
fatchan
f0f811bd25
quote improvement for when board doesnt exist, dont search for a post
5 years ago
fatchan
d5a5a8d8c6
cross quotes work on their own, and optional last slash in crossquote regex
5 years ago
fatchan
c18f25861e
improve trimming bad inputs and fix code block markdown to be non-greedy and respect first line leading whitespace
5 years ago
fatchan
a1e102f25d
re-markup posts when a post they quote is deleted
5 years ago
fatchan
722d58be50
same origin referrer policy to protect user privacy, if supported by browser. same origin to prevent issues with same site links and posting referrer checks
5 years ago
fatchan
4bf56fdc3b
cyclical threads, fix trying empty bulkwrite in deleteposts, fix missing thumbs in catalog tiles
5 years ago