Markdown API
GET https://llmfoundry.straive.com/-/markdown?url=... converts the HTML on the page to Markdown. This is useful to pass contents to an LLM. For example:
# Convert the Wikipedia page on Socrates to Markdown
curl "https://llmfoundry.straive.com/-/markdown?url=https://en.wikipedia.org/wiki/Socrates
By default, this strips out all navigation, etc. and returns only the main article. You can specific:
?n=[number of articles]: If a page contains a list of news items, e.g. BBC News, specific?n=10to get 10 news items - or?n=0to convert the entire page (including navigation) to Markdown. Example: BBC News in Markdown?links: If you use?n=0then by default, links are not included (to reduce tokens). Add&linksto include them. Example: BBC News in Markdown with links