Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Ensure the article appears exactly as it will when published #1102 #1152

Conversation

dineshsutihar
Copy link

@dineshsutihar dineshsutihar commented Oct 18, 2024

Fixes #1102

Pull Request details

  • Implement exact rendering of articles on the article page, ensuring they appear as the user typed.
  • This PR supports backward compatibility with previous articles stored in markdown format, while properly rendering new articles stored in the JSON format.

Any Breaking changes

  • If the "Excerpt" input is left blank in the alpha editor, the default preview will display JSON output. This happens because the article content is stored in JSON format, and without an excerpt, the backend defaults to using the article content for the preview.

Associated Videos

Preview of new JSON content:

2024-10-19.00-10-28.mp4

Preview of old Markdown content:

2024-10-19.00-12-07.mp4

Screenshot of issue

image

Copy link

vercel bot commented Oct 18, 2024

@dineshsutihar is attempting to deploy a commit to the Codú Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

Hello @dineshsutihar, thanks for opening your first Pull Request. The maintainers will review this Pull Request and provide feedback as soon as possible. Keep up the great work!

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.

Implement WYSIWYG for the alpha editor.
1 participant