Skip to content

Writeup preview matching published markdown - #1882

Merged
proditis merged 1 commit into
echoCTF:masterfrom
sirEgghead:writeup-preview-match
Nov 22, 2026
Merged

proditis merged 1 commit into
echoCTF:masterfrom
sirEgghead:writeup-preview-match

Conversation

@sirEgghead

Copy link
Copy Markdown
Contributor

This PR covers #1881

  • preview drops the github flavor and only enables what the server renders: no single line breaks, task lists, emoji or @mentions
  • preview headings start at h3 and cap at h6 like replaceHeadlines
  • 3 space nested lists work in the preview
  • purifier allows hr, del, thead and tbody, this also applies to news and target metadata
  • libechoctf.js version bumped to 1.0.3

Image sizes (=100x50) and raw html like <details> still show in the preview and get dropped when published

Fixes #1881

@proditis proditis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont understand what this is fixing? Removing options that work on the live platform without a proper reason is not something we would like to do 😄

Is this fixing something other than what you personally like ?

@proditis proditis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After reading the PR a couple of times i think i get it now.

You are correct!!! Your changes are reasonable and the right way to go about!!! Ignore my previous comment, I will not deleted it for history sake!!!

@proditis
proditis merged commit 31e6078 into echoCTF:master Nov 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Writeup preview doesn't match the published writeup

2 participants