Comments (3)
I think this is an issue w/ docutils, I'm not sure linenos is an option it
accepts?
I'm not seeing it here:
http://docutils.sourceforge.net/docs/ref/rst/directives.html but do you
have it working elsewhere?
On Tue, Dec 22, 2015 at 6:16 AM, Krish [email protected] wrote:
Hi,
I have following code-block
.. code-block:: HTML
:linenos:Then it is giving error like Error in "code-block" directive: unknown
option: "linenos".What is the issue? I am using markfield 1.4.0, and docutils 0.12. My
setting is like:import markdown
from docutils.core import publish_partsdef render_rest(markup):
parts = publish_parts(source=markup, writer_name="html4css1")
return parts["fragment"]MARKUP_FIELD_TYPES = (
('markdown', markdown.markdown),
('ReST', render_rest),
)Thanks, and I select markup type ReST while saving.
—
Reply to this email directly or view it on GitHub
#38.
from django-markupfield.
let me know if this is still an issue for you, otherwise I'll close this in a few days, thanks!
from django-markupfield.
Thanks @jamesturk you are right the issue is with docutils. http://sphinx-doc.org/
allow this. I realized that Sphinx it has custom directive. Yes, please close it.
from django-markupfield.
Related Issues (20)
- Push a new version to Pypi HOT 3
- markdown should be added as a dependency HOT 2
- Need help with set up HOT 5
- non-lazy gettext calls at import time HOT 3
- AttributeError: 'NoneType' object has no attribute 'markup_type' HOT 5
- Settings? HOT 4
- disallow html HOT 1
- Django Modelform not saving field (Django 1.9) HOT 2
- Markdown footnote reset issue HOT 1
- Render inside form-tools formwizard HOT 3
- Markdown is stored as HTML in the database HOT 1
- indexing MarkupFields with wagtail & elasticsearch HOT 1
- MarkupDescriptor breaks with Django 2.1's admin checks
- {% if model.field %} and {{ model.field|default }} don't work
- Table didnt appear !!
- Please make new release for Django 3.0 compatibility HOT 1
- Incrementing `creation_counter` breaks field equality
- ArrayField(MarkupField()) support HOT 2
- Preventive maintenance of package HOT 2
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 django-markupfield.