Skip to content

Instantly share code, notes, and snippets.

@dhalperi
Created September 4, 2014 18:06
Show Gist options
  • Save dhalperi/5d0f7c8fc780a14495a4 to your computer and use it in GitHub Desktop.
Save dhalperi/5d0f7c8fc780a14495a4 to your computer and use it in GitHub Desktop.
pelican syntax highlighting example. (python-markdown issue)
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.
@begueradj
Copy link

begueradj commented Dec 18, 2016

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:

:::python
print("foo")

(with ``` at the start and end of this piece of code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment