Podcast Description Markdown Display and Save Issues
Describe the bug
-
When editing an existing podcast description, the text editor does not display the existing markdown formatting in the Write tab. However, when clicking on the Preview tab, any existing formatting is displayed.
-
The editor does not save blank lines in the podcast description. For example, I have a show description and then want a blank line before listing the contact information for the podcast in the description. Both the Write and the Preview tabs show the blank line, but when I save it, the line is truncated/removed.
Steps to reproduce
Not seeing existing formatting
- Log into the admin panel
- Click on a podcast that has an existing description using Markdown formatting
- Click the Edit podcast link in the left menu
- Any existing formatting does not display as markdown in the Write tab of the text editor.
- Click the Preview tab and you can see existing formatting in the preview.
Blank Lines Not Saving in Description
- Log into the admin panel
- Click on a podcast
- Click the Edit podcast link in the left menu
- Create a description or edit an existing description to add a blank line.
- Click the Preview tab and you can see the blank line renders in the preview.
- Click the Save Podcast button
- Both the Edit podcast page and the About tab on the main website display the description without the blank line. Castopod removes the blank line in the Description field during the save.
Expected behavior
I expect any existing markdown formatting to display in the Description field when I edit it. I expect Castopod to retain blank lines in the Description field.
Actual behavior
The Description field does not display markdown formatting text for existing descriptions. The Description field does not retain blank lines.
Relevant logs and/or screenshots
Not seeing existing formatting
Notice in this example, the markdown for the email address feedback link is missing in the Write tab but the Preview tab still displays the email address as a link. Although, the preview does not display the Bold font formatting of the second line of my description as featured on the About tab on the main site.
If I edit the Description and save it without re-applying the existing formatting, the formatting is removed.
Blank Lines Not Saving in Description
I changed the Description to add a space between the podcast description and the information about contacting the show. The change doesn't save.
Context
- Castopod: 1.0.0-beta.4
- OS: Ubuntu
- Browser: Brave/Chromium Version 1.34.81 Chromium: 97.0.4692.99 (Official Build) (64-bit)
- Web server: Apache
Possible fixes
I'm sorry but I do not have any potential fixes or enough knowledge of code to pinpoint the issue.