Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Do seed posts need to be HTML rather than Markdown? Question

+1
−0

In QPixel, under db/seeds/posts, there are a number of HTML files which are starting points for various help guides and documents such as Terms of Service and Code of Conduct.

These can be edited through the user interface (by admins), at which point they accept Markdown. I've tested one of them (Formatting - which is the guide to Markdown) by converting to solely Markdown (no HTML). This saves successfully in the user interface, and can also be used to seed the database by overriding the HTML file to contain only Markdown and then running UPDATE_POSTS=true rails db:seed.

To me, it seems that it would be easier for editors if the files contained Markdown rather than HTML (or HTML only in those places where Markdown cannot suffice, such as to show buttons or style with classes, which seems to be rare in the existing files). This would also allow non-technical admins who are unfamiliar with HTML to edit the documents.

Is there any reason to avoid this? Is there any reason that these files need to be solely HTML?

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

0 answers

Sign up to answer this question »