fix: 1.修复标题中公式在md渲染异常 2.修复正则无法正确匹配$...$$...$$...$这种连续公式 3.修复处理不闭合的公式逻辑 4.去掉$转义 #1747
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: lint | |
| on: [push, pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.10.15] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install pre-commit hook | |
| run: | | |
| pip install pre-commit==3.8.0 | |
| pip install jupyter | |
| pre-commit install | |
| - name: Linting | |
| run: pre-commit run --all-files |