Skip to content

Escape underscores in math and credit HKU affiliation - #5

Merged
Le-Brown merged 1 commit into
mainfrom
fix-rombrl-post-formulas
Aug 5, 2026
Merged

Le-Brown merged 1 commit into
mainfrom
fix-rombrl-post-formulas

Conversation

@Le-Brown

@Le-Brown Le-Brown commented Aug 5, 2026

Copy link
Copy Markdown
  • Escape every subscript underscore inside $...$/$$...$$ as _ so kramdown's GFM emphasis parser can't pair two of them into an span and split the formula (verified end-to-end against the site's actual jekyll-spaceship + kramdown-parser-gfm pipeline: kramdown strips the escaping backslash before MathJax ever sees the text, so subscripts render correctly, e.g. $$\mathbb{E}_{(s,a)...}$$ reaches MathJax as bare E_{(s,a)...}).
  • Credit the Agentic Intelligence Lab's University of Hong Kong affiliation explicitly in the opening paragraph.

This website is based on the Lab Website Template.
See its documentation for working with this site:

https://greene-lab.gitbook.io/lab-website-template-docs

- Escape every subscript underscore inside $...$/$$...$$ as \_ so
  kramdown's GFM emphasis parser can't pair two of them into an <em>
  span and split the formula (verified end-to-end against the site's
  actual jekyll-spaceship + kramdown-parser-gfm pipeline: kramdown
  strips the escaping backslash before MathJax ever sees the text, so
  subscripts render correctly, e.g. $$\mathbb{E}\_{(s,a)...}$$ reaches
  MathJax as bare E_{(s,a)...}).
- Credit the Agentic Intelligence Lab's University of Hong Kong
  affiliation explicitly in the opening paragraph.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2026-08-05 06:55 UTC

@Le-Brown
Le-Brown merged commit 87bec7b into main Aug 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant