Open depado opened 9 years ago
I just meet problem with meta extension, I wrote like this:
Title: A Metadata DEMO
Author: Hsiaoming Yang
# Be Pythonic
xxx
but the result is:
>>> meta.parse(txt)[0]
{'Author': 'Hsiaoming Yang\n# Be Pythonic', 'Title': 'A Metadata DEMO'}
>>>
then I wrote like this:
---
Title: A Metadata DEMO
Author: Hsiaoming Yang
---
# Be Pythonic
xxx
but the result is:
>>> meta.parse(txt)[0]
{}
>>>
I wrote like this:
Title: A Metadata DEMO
Author: Hsiaoming Yang
---
# Be Pythonic
xxx
it works:
>>> meta.parse(txt)[0]
{'Author': 'Hsiaoming Yang', 'Title': 'A Metadata DEMO'}
>>>
The syntax confusing, and didn't has any documents. Maybe it's a bug!
If you found a way to use it, maybe you could write up a small tutorial on how you did things. I wrote an article on the MathJax problem : http://depado.markdownblog.com/2015-09-29-mistune-parser-syntax-highlighter-mathjax-support-and-centered-images
@guyskk just to read the source, and you will know how it works.
@yxy #7
@guyskk yeah, import yaml makes more scalable, but introduce another dependency also make more complicated. reminds me this jok: Someone ask a programer that he wants a banana, and the programer gives him a forest.
So, all I want is just a simple meta key-value info, here is what I try to do #13 , just to simply this solution.
Hi,
I find the documentation in the docstrings overly complicated and I can't seem to understand what's going on. I want to use the math/mathjax syntax in my markdown. Could you provide some example on how to achieve that ?
I already have a custom renderer for syntax highlighting, and I'd like to keep it that way :
Thanks a lot.