Skip to content

Commit 98ff924

Browse files
committed
add pymdown-extensions
1 parent 62d0687 commit 98ff924

File tree

7 files changed

+12
-26
lines changed

7 files changed

+12
-26
lines changed

pyconlang/book/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from .. import PYCONLANG_PATH
1111
from ..metadata import Metadata
1212
from .block import Boxed, Details
13-
from .inline import InlineDelete, InlineInsert
1413
from .lexicon_inserter import LexiconInserter
1514
from .multi import MultiExtension
1615
from .preprocess import SkipLine
@@ -29,10 +28,11 @@ def __init__(self) -> None:
2928
"toc",
3029
"sane_lists",
3130
"mdx_include",
31+
"pymdownx.escapeall",
32+
"pymdownx.caret",
33+
"pymdownx.tilde",
3234
SkipLine(),
3335
self.lexicon,
34-
InlineDelete(),
35-
InlineInsert(),
3636
Boxed(),
3737
Details(),
3838
MultiExtension(""),

pyconlang/book/inline.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

pyconlang/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ def reset() -> None:
4545
@click.option(
4646
"-l", "--lexurgy", is_flag=True, default=False, help="Only install Lexurgy"
4747
)
48-
def init(directory: Path, name: str, author: str, overwrite: bool, lexurgy: bool) -> None:
48+
def init(
49+
directory: Path, name: str, author: str, overwrite: bool, lexurgy: bool
50+
) -> None:
4951
directory.mkdir(parents=True, exist_ok=True)
5052
lexurgy_zip = str(
5153
files("pyconlang.data").joinpath(f"lexurgy-{LEXURGY_VERSION}.zip")

pyconlang/data/book/book.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ Smart quotes like 'this' and "this"
2020
|----|------|
2121
| Tables | Alright |
2222

23-
You can ~delete~ and +insert+ stuff.
23+
You can ~~delete~~ and ^^insert^^ stuff.
24+
25+
You can have^super\ scripts^ and~sub\ scripts~.
2426

2527
!skip and you can comment out lines
2628

pyconlang/evolve/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,7 @@ def evolve_words(
206206
# todo too heuristic?
207207
stdout = result.stdout.strip().splitlines()
208208
if len(stdout) > 0:
209-
raise LexurgyError(
210-
result.stdout.strip().splitlines()[-1]
211-
)
209+
raise LexurgyError(result.stdout.strip().splitlines()[-1])
212210
else:
213211
raise LexurgyError(result.stderr)
214212

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ license = { text = "BSD 3-Clause License" }
1212
dependencies = [
1313
"Markdown==3.4.1",
1414
"mdx-include==1.4.2",
15+
"pymdown-extensions==9.9.2",
1516
"prompt-toolkit==3.0.30",
1617
"watchdog==2.1.9",
1718
"click==8.1.3",

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def tmpdir():
1919

2020
@pytest.fixture
2121
def tmp_pyconlang(tmpdir):
22-
init.callback(tmpdir, "TestLang", "Mr. Tester", False)
22+
init.callback(tmpdir, "TestLang", "Mr. Tester", False, False)
2323

2424
yield tmpdir
2525

0 commit comments

Comments
 (0)