Created
September 4, 2014 18:06
-
-
Save dhalperi/5d0f7c8fc780a14495a4 to your computer and use it in GitHub Desktop.
pelican syntax highlighting example. (python-markdown issue)
This file contains 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
Title: Python test | |
Slug: python-test | |
Date: 2014-01-20 | |
Tags: python | |
Python test: | |
:::python | |
print("foo") | |
```python | |
print("foo") | |
``` | |
Inside a list: | |
1. Here is some text. Let us try the ::: version of syntax highlighting. | |
Only four spaces to indent: | |
:::python | |
print("foo") | |
Using eight spaces to indent: | |
:::python | |
print("foo") | |
2. Now let us try the ``` version of syntax highlighting. | |
Only four spaces to indent: | |
```python | |
print("foo") | |
``` | |
Using eight spaces to indent: | |
```python | |
print("foo") | |
``` | |
End of test. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hopefully I understand your issue, but at least I see you misused the syntax because you forgot the ``` symbol both at the start and the end of your code. You should code it like this instead:
(with ``` at the start and end of this piece of code)