ribalba / markdown.highlight

Adds the possibility to use "??? something ???" to create a span that looks like <span class="highlight">something</span>

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing `py_modules` in `setup.py`?

silverhook opened this issue · comments

I can’t seem to make this work under Pelican …I am wondering if the following line is perhaps missing in setup.py:

py_modules=['mdx_highlight']

Hey, I don't think we need that dependence? How did you come to that?

I don’t mean that you depend on it, but from what I understand (and I could be very wrong) the point of that variable is to let others know how this module is called.

At least comparing your setup.py to the one from mdx_del_ins that’s how I understand it.

It could very well also be that Pelican assumes that the names of all Python Markdown extensions are prefixed by mdx_.

Friendly ping?

Hey, sorry totally lost track of this. Is on the todo list now. Sorry about that.

That’s totally fine. Glad to hear you’re still working on this plugin 😸

Hey, so I took a look at this. You can use markdown.highlight with Pelican by adding the following lines to your pelicanconf.py:

from MarkdownHighlight.highlight import HighlightExtension
MD_EXTENSIONS = [HighlightExtension(), ]

and this seams to work fine in my environment.

Markdown==2.5.2
MarkdownHighlight==0.1.3
pelican==3.5.0

does this help you? Thx @iElectric for the hint.

Seems a bit hackish, but it works – thanks 😸

If you at some point manage to get it working without having to import it manually, it would be even neater.