writeas / writeas-cli

Command line client for Write.as / WriteFreely
https://write.as/apps/cli
GNU General Public License v3.0
113 stars 20 forks source link

Add flags for returning different post formats on publish #14

Closed thebaer closed 5 years ago

thebaer commented 6 years ago

Overview Allow users to get a publish URL that reflects the format they want, e.g. plain text or with rendered Markdown.

Background Appending certain extensions to anonymous post URLs makes them render differently. E.g. .txt returns a full post as text/plain and .md renders Markdown in a post.

Implementation Upon successfully publishing a new post, simply append the correct extension to the write.as URL based on flags given. Plain text URLs end in .txt, e.g. https://write.as/ql9ed0uc49pdp1qu.txt, and Markdown URLs end in .md, e.g. https://write.as/ql9ed0uc49pdp1qu.md

Correct solution

Original solution

thebaer commented 5 years ago

Moved to Phabricator T587.