Coder Social home page Coder Social logo

Comments (3)

jamesturk avatar jamesturk commented on June 28, 2024

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_parts

def 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.

jamesturk avatar jamesturk commented on June 28, 2024

let me know if this is still an issue for you, otherwise I'll close this in a few days, thanks!

from django-markupfield.

s2krish avatar s2krish commented on June 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.