Skip to content

Commit

Permalink
Better example
Browse files Browse the repository at this point in the history
  • Loading branch information
shaedrich authored Jun 6, 2024
1 parent 7c08170 commit fca1540
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started/how-it-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Let's go through that line by line.

## Line 1

```{ .ponylang snippet="hello-world-main.pony:1-3,6" dedent_subsections=false }
```{ .ponylang snippet="classes-wombat:1-3,6" dedent_subsections=false }
Lorem ipsum
```

Expand Down
6 changes: 3 additions & 3 deletions lib/superfences_ponylang/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ def format(source, language, css_class, options, md, classes=None, id_value='',
start, end = lineNum.split('-')
if (i + 1) >= int(start) and (i + 1) <= int(end):
lines.append(line)
_lines[i] = (lineNum, line)
_lines[i] = (lineNumbers, line)
elif (i + 1) == int(lineNum):
lines.append(line)
_lines[i] = (lineNum, line)
_lines[i] = (lineNumbers, line)
else:
_lines[i] = (lineNum, None)
_lines[i] = (lineNumbers, None)
#source = str(lines)
source = str(_lines)

Expand Down

0 comments on commit fca1540

Please sign in to comment.