--- import BaseHead from '../components/BaseHead.astro'; import Footer from '../components/Footer.astro'; import Header from '../components/Header.astro'; ---

Inline Code Backticks Test

This page tests the conversion of inline code elements that contain backticks. The HTML <code> tag should be converted to markdown without escaping backticks, relying on longer fences instead.

Here are some examples:

  • Command: ls - should render as ls in markdown
  • Template literal: `template` - should render without escaped backticks
  • Nested backticks: ``double`` - should use longer fence
  • HTML entity: <code> - should handle entity decoding

The key test case is that <code>ls</code> should render as markdown without literal backslashes before backticks. Specifically, the HTML entity sequence <code>ls</code> should render as ls in markdown (using longer fences if needed), not as \`ls\` with escaped backticks.

1 client<llm> MyCustomClient {
2 provider "openai"
3 options {
4 model "gpt-5-mini"
5 // Set the API key using an environment variable
6 api_key env.MY_SUPER_SECRET_API_KEY
7 }
8 }