Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam D committed Jul 2, 2021
1 parent a2300fb commit 7796540
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

- uses: r-lib/actions/setup-pandoc@v1
with:
pandoc-version: ${{ matrix.pandoc-version }}
pandoc-version: ${{ matrix.pandoc-version }}

- name: Install Python dependencies
run: |
Expand All @@ -79,7 +79,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml

merge-deps:
needs:
- lint
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The footnotes extension is how citations are linked for now.
- `bib_command` - The command for your bibliography, defaults to `\bibliography`
- `full_bib_command` - The command for your bibliography, defaults to `\full_bibliography`
- `csl_file` - Bibtex CSL file to format the citation with, defaults to None, using a built in plain format instead
- `unescape_for_arithmatex` - Optional; set to `True` to avoid the `\(` `\)` [issue](https://github.com/shyamd/mkdocs-bibtex/issues/3) with [pymdownx.arithmatex](https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/)
- `unescape_for_arithmatex` - Optional; set to `True` to avoid the `\(` `\)` [issue](https://github.com/shyamd/mkdocs-bibtex/issues/3) with [pymdownx.arithmatex](https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/)

## Usage

Expand Down
4 changes: 2 additions & 2 deletions mkdocs_bibtex/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ def test_unescape_for_arithmatex(self):
self.plugin.unescape_for_arithmatex = True
self.assertIn(
"First Author and Second Author\. Test Title (TT)\. *Testing Journal (TJ)*, 2019",
self.plugin.format_citations(test_data.entries.items())["test"]
self.plugin.format_citations(test_data.entries.items())["test"],
)

self.plugin.unescape_for_arithmatex = False
self.assertIn(
"First Author and Second Author\. Test Title \(TT\)\. *Testing Journal \(TJ\)*, 2019",
self.plugin.format_citations(test_data.entries.items())["test"]
self.plugin.format_citations(test_data.entries.items())["test"],
)

def test_config_one_bibtex_file(self):
Expand Down
2 changes: 1 addition & 1 deletion test_files/long_cite.bib
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ @article{Bivort2016
journal = {Current Opinion in Insect Science},
keywords = {attention,bees,drosophila,insects},
pmid = {27436727}
}
}

0 comments on commit 7796540

Please sign in to comment.