Comments (5)
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!
from mistune-contrib.
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
from mistune-contrib.
@guyskk just to read the source, and you will know how it works.
from mistune-contrib.
from mistune-contrib.
@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.
from mistune-contrib.
Related Issues (10)
- Emoji Grammar
- Add typeshed for python3
- In mistune-contrib/math.py, are these codes (in comments) in a reverse order ?
- ToC crashes when there are no headers/titles HOT 1
- MdRenderer not exported?
- updated pypi release? HOT 2
- Upload to PyPI HOT 3
- TOC API is overcomplicated HOT 2
- License for mistune-contrib HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mistune-contrib.