8000 [WIP POC] Try outputting Markdown and plaintext by mdlinville · Pull Request #1334 · wandb/docs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[WIP POC] Try outputting Markdown and plaintext #1334

New issue

Have a question about this project? Sign up for a free 8000 GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mdlinville
Copy link
Contributor
@mdlinville mdlinville commented May 19, 2025
8000

Requested by Morgan to mimic functionality on OpenAI's site. Very much WIP.

  • Enable Markdown output for pages, to public/_markdown
  • Enable plaintext output for pages, to public/_plain
  • Add Markdown template, working well
  • Add Plain template, nearly there.

I'm hoping someone else can take this the last mile as I'm at the edge of my capabilities on this one.

TODO:

  • Plain: Insert blank lines between paras, have not quite figured out the regexRE invocation
  • Markdown:Transform the relrefs into plain Markdown links
  • Add page footer links and HTML meta tags

To test:

@mdlinville mdlinville requested a review from morganmcg1 May 19, 2025 19:22
@mdlinville mdlinville changed the title Try outputting Markdown and plaintext [WIP POC] Try outputting Markdown and plaintext May 19, 2025
@mdlinville mdlinville added the DO-NOT-MERGE For PRs that should not be merged yet label May 19, 2025
Copy link
cloudflare-workers-and-pages bot commented May 20, 2025

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: de1a982
Status: ✅  Deploy successful!
Preview URL: https://e712697c.docodile.pages.dev
Branch Preview URL: https://try-markdown-and-text-output.docodile.pages.dev

View logs

@mdlinville mdlinville force-pushed the try_markdown_and_text_outputs branch from de1489e to de1a982 Compare June 10, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DO-NOT-MERGE For PRs that should not be merged yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0