Some questions about Markdown

56 views
Skip to first unread message

Aaron Meurer

unread,
Apr 13, 2014, 9:55:07 PM4/13/14
to nikola-...@googlegroups.com
I have some questions about Markdown. I am having some issues getting it to do things. I'm starting to get the impression that the Markdown renderer that Nikola uses kind of sucks. 

1. How do I indent additional lines from a bullet point? Usually I would do

- This is a bullet

  This is part of the same bullet

that is, just indent further lines by two spaces. But this doesn't work.

2. How do I get fenced code to work with syntax highlighting? ```py and ```python don't seem to produce Python highlighted code. 

Aaron Meurer

Aru Sahni

unread,
Apr 13, 2014, 10:10:37 PM4/13/14
to nikola-...@googlegroups.com
  1.  Your second paragraph needs to be indented with 4 spaces or 1 tab.
  2. I believe that fenced code blocks are part of GitHub's flavor of markdown, not native markdown. If you're using the fenced code extension, inspect the generated HTML to see if the appropriate CSS classes are being applied to the codeblock - it could be that your stylesheet doesn't have the appropriate code highlighting rules.


--
You received this message because you are subscribed to the Google Groups "nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ivan

unread,
Apr 13, 2014, 10:28:21 PM4/13/14
to Nikola Discuss
Hi,

There are plugins, 'code-block' or 'listing' in Nikola that can highlight Python code in post. Read more at

http://getnikola.com/handbook.html#code

http://getnikola.com/handbook.html#listing



Cheers,
Ivan

Roberto Alsina

unread,
Apr 14, 2014, 6:20:32 AM4/14/14
to nikola-...@googlegroups.com
On 13/04/14 23:28, Ivan wrote:
> Hi,
>
> There are plugins, 'code-block' or 'listing' in Nikola that can
> highlight Python code in post. Read more at
>
> http://getnikola.com/handbook.html#code
>
> http://getnikola.com/handbook.html#listing
>

Sadly those plugins are not for markdown.

Ivan

unread,
Apr 14, 2014, 6:53:25 AM4/14/14
to Nikola Discuss
I over look the email again. :(

Cheers,
Ivan


--
You received this message because you are subscribed to the Google Groups "nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discuss+unsubscribe@googlegroups.com.

Roberto Alsina

unread,
Apr 14, 2014, 7:18:27 AM4/14/14
to nikola-...@googlegroups.com
On Mon, Apr 14, 2014 at 7:53 AM, Ivan <ivan...@gmail.com> wrote:
I over look the email again. :(


Happens to everyone :-) 

Guillaume Gay

unread,
Apr 24, 2014, 3:13:27 AM4/24/14
to nikola-...@googlegroups.com
Hi,

I think I have the same issue here...

I don't seem to be able to have code highlighting in my markdown posts. I can see the <div class="codehilite"> in the generated code, but no syntax highlighting. I use a theme derived from bootstrap for now.

Note that it is also the case with ipython notebook files.

What am I missing?

Best,

Guillaume
--
You received this message because you are subscribed to the Google Groups "nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discus...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
Guillaume Gay, PhD

http://damcb.com

43 rue Horace Bertin
13005 Marseille

+33 953 55 98 89
+33 651 95 94 00

n°SIRET 751 175 233 00020

Damián Avila

unread,
Apr 24, 2014, 7:34:10 AM4/24/14
to nikola-...@googlegroups.com
If you generated your own theme for blogging with IPython notebook files, you need to provided the ipython.min.css to your theme to have the code highlighted... 
Damián

Aru Sahni

unread,
Apr 24, 2014, 7:44:07 AM4/24/14
to nikola-...@googlegroups.com
You'll need to add some CSS for the highlighting to get applied. The Python Markdown library uses Pygments.  You'll need to generate the highlight file and include it in your template (or steal it from another template that supports it).

Chris “Kwpolska” Warrick

unread,
Apr 24, 2014, 7:45:57 AM4/24/14
to Nikola—Discuss
On Thu, Apr 24, 2014 at 1:44 PM, Aru Sahni <arus...@gmail.com> wrote:
> You'll need to add some CSS for the highlighting to get applied. The Python
> Markdown library uses Pygments. You'll need to generate the highlight file
> and include it in your template (or steal it from another template that
> supports it).

Nikola should handle it automatically, via the CODE_COLOR_SCHEME setting.

--
Chris “Kwpolska” Warrick <http://kwpolska.tk>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense

Aru Sahni

unread,
Apr 24, 2014, 7:49:35 AM4/24/14
to nikola-...@googlegroups.com
I had interpreted his comment as saying he was using a custom theme, if that's not the case, then please disregard my suggestion.

~A


Damián Avila

unread,
Apr 24, 2014, 7:52:08 AM4/24/14
to nikola-...@googlegroups.com
me too ;-)
--
Damián

Aaron Meurer

unread,
Apr 24, 2014, 9:40:23 AM4/24/14
to nikola-...@googlegroups.com
I don't know about Guillaume, but I am definitely not using a custom theme. 

Aaron Meurer

Guillaume Gay

unread,
Apr 24, 2014, 10:05:00 AM4/24/14
to nikola-...@googlegroups.com
ok thanks, I'm using a custom theme, but seem to remember having the same issue wit the default...


I'll give a try to all that...

G.
Reply all
Reply to author
Forward
0 new messages