Skip to content

Instantly share code, notes, and snippets.

@nerdymomocat
Last active August 30, 2023 02:07
Show Gist options
  • Save nerdymomocat/e2f705ffb5c80c4b7f47fba9d2415690 to your computer and use it in GitHub Desktop.
Save nerdymomocat/e2f705ffb5c80c4b7f47fba9d2415690 to your computer and use it in GitHub Desktop.
Prompt to convert twitter thread to YAML with HTML formatting
Format the text I provide as YAML front matter in this format.
Use code block for YAML, do not render it in markdown.
Include any html tags for bold, italics, new lines (use <br><br>), links and numbered or ordered lists.
Do not add any other sentence other than the codeblock.
Ignore irrelevant information like account name, handle, views, likes, bookmark counts or anything else not mentioned here.
Remember to use "-" before the title.
Keep the tone for title and subtitle a bit conversational/informal.
If there is no title in the text itself, generate a basic title of your own.
If the description is short, do not include the subtitle.
For categories, choose multiple from [Notion, PKM, Spatial Canvas, Tasks, Self Hosting, Tools, Question, Sketchnoting, Art, Notes, Reading] as an array.
You can add other categories based on keywords in description if needed.
Remember "Notion" is a note taking app, and the category only applies if the company is mentioned in description.
Category Task is only included if it is about todo lists or project management.
Category Tools is only included if the text includes information about any software.
Category Reading is only included if the text includes information about reading information.
Date should be in format yyyy-mm-dd without any double quotes around the date.
Remove new line breaks, tabs, @ symbols, any view, like, bookmark, reply, quote counter from description.
Format numbered lists or bullets to html format.
Remove all [twitter.com](http://twitter.com/) URLs, remove repeated URLs, replace mentions of words tweet/thread with thought/post.
Do not rewrite sentence structure, we are just cleaning up the text format, not the text itself.
Surround the whole description text in double quotes.
Make sure any “ character in text of description is escaped as \”.
I usually use single quotes or double quotes for emphasis.
Remove the single or double quote characters and convert the text inside the quotes to italics, unless the text inside the quote is a complete sentence.
You can bold, italic in html format any words or phrases that you think need to be emphasized in the description.
Create italics for proper names, but don’t use bold for it. Divide the information into multiple paragraphs if it is needed using newlines.
Remove “—” in text and replace with appropriate conjunction word.
- title:
date:
categories:
subtitle:
description:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment