Skip to content
New issue

Have a question about this project? Sign up for a free 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

Add KaTeX rendering to Markdown. #20571

Merged
merged 36 commits into from
Sep 13, 2022
Merged

Add KaTeX rendering to Markdown. #20571

merged 36 commits into from
Sep 13, 2022

Commits on Jul 31, 2022

  1. Add KaTeX rendering to Markdown.

    This PR adds mathematical rendering with KaTeX.
    
    The first step is to add a Goldmark extension that detects the latex
    (and tex) mathematics delimiters.
    
    The second step to make this extension only run if math support is
    enabled.
    
    The second step is to then add KaTeX CSS and JS to the head which will
    load after the dom is rendered.
    
    Fix go-gitea#3445
    
    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Jul 31, 2022
    Configuration menu
    Copy the full SHA
    f57fb78 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2022

  1. Switch to always available rendering with ```math

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    3ac5fb5 View commit details
    Browse the repository at this point in the history
  2. remove goldmark meta and handle yaml frontmatter ourselves

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    1f81006 View commit details
    Browse the repository at this point in the history
  3. missedremoval

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    fa26c58 View commit details
    Browse the repository at this point in the history
  4. placate lint

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    1d6a332 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2022

  1. Configuration menu
    Copy the full SHA
    3a8c4f0 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2022

  1. Configuration menu
    Copy the full SHA
    11c5c8d View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2022

  1. Configuration menu
    Copy the full SHA
    eba0331 View commit details
    Browse the repository at this point in the history
  2. as per silverwind

    Signed-off-by: Andrew Thornton <[email protected]>
    Co-authored-by: silverwind <[email protected]>
    zeripath and silverwind committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    a775a9c View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2022

  1. Apply suggestions from code review

    Co-authored-by: silverwind <[email protected]>
    zeripath and silverwind authored Sep 3, 2022
    Configuration menu
    Copy the full SHA
    ca3573d View commit details
    Browse the repository at this point in the history
  2. placate lint

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Sep 3, 2022
    Configuration menu
    Copy the full SHA
    810c790 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    606ff7e View commit details
    Browse the repository at this point in the history
  4. Handle conflict from go-gitea#20987

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Sep 3, 2022
    Configuration menu
    Copy the full SHA
    3b361e2 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2022

  1. Set inline dollar math to true - to match github

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Sep 4, 2022
    Configuration menu
    Copy the full SHA
    438f9fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    47127fe View commit details
    Browse the repository at this point in the history
  3. fix inline placement of display math

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Sep 4, 2022
    Configuration menu
    Copy the full SHA
    056ab70 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    de68952 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2022

  1. Configuration menu
    Copy the full SHA
    7a2387a View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2022

  1. Configuration menu
    Copy the full SHA
    5289f35 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2022

  1. Configuration menu
    Copy the full SHA
    0cb8346 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b45a6fa View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2022

  1. Configuration menu
    Copy the full SHA
    39d7b47 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2022

  1. Configuration menu
    Copy the full SHA
    a7d60af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    841a22c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    563a798 View commit details
    Browse the repository at this point in the history
  4. remove inline dollar option

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Sep 11, 2022
    Configuration menu
    Copy the full SHA
    f114106 View commit details
    Browse the repository at this point in the history
  5. fix spelling bug

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Sep 11, 2022
    Configuration menu
    Copy the full SHA
    4b138db View commit details
    Browse the repository at this point in the history
  6. comments

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Sep 11, 2022
    Configuration menu
    Copy the full SHA
    92d3748 View commit details
    Browse the repository at this point in the history
  7. as per delvh

    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath committed Sep 11, 2022
    Configuration menu
    Copy the full SHA
    e7851ca View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    07c13ce View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2022

  1. Configuration menu
    Copy the full SHA
    97dcc1f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8eae07a View commit details
    Browse the repository at this point in the history
  3. docs update

    silverwind committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    59e0b7f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b53d5cb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    caa4130 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2022

  1. Configuration menu
    Copy the full SHA
    3409860 View commit details
    Browse the repository at this point in the history