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

fix highlight and copybutton related issue #495

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LXYan2333
Copy link

There is a lot of highlight issue in the original webpage:

  1. several code block missing ```fortran identifier

  2. some console block is identified as shell, which is used for shell script file highlight (ref: https://github.com/github-linguist/linguist/blob/466ed9937ffe5609ab565f43d7305a5d46410622/lib/linguist/languages.yml#L6738)

    this does not only affect the highlight, but also confused the copybutton sphinx extension. for example:

    ```shell
    $ echo 1
    \ ```
    

    in this case, copybutton will copy $ echo 1, but if this block is identified as console then echo 1 will be copied.

  3. there is one line added in conf.py, which is used to strip command output from the copied text. the related document can be found on here

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