Re: Content block expected for the "raw" directive; none found.
Marc Rintsch <[email protected]> Sun, 24 May 2020 16:14:53 +0200
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
On 24.05.20 12:07, Saša Janiška wrote:
> while writing content for Nikola (static-site-generator) I've a need to
> display counter for downloaded links and first of all tried with 'raw'
> directive as in the 2nd definition, but I get: "Content block expected
> for the "raw" directive; none found."
>
> Then I found some workaround to use it inline, like in the 1st
> definition and that works, but wonder what is wrong with the 2nd
> example?
>
> - - - - - - - - - - -
>
> .. role:: raw-html(raw)
> :format: html
>
> Lectures
> -----------
>
> 1. lesson: `Lesson I <https://sub.tld/click.php?id=1>`_ (:raw-html:`<script>ccount_display('1');</script>`)
>
>
> 2. lesson `Lesson II <https://sub.tld/click.php?id=2>`_
>
> .. raw:: html
> <script>ccount_display('2');</script>
>
> - - - - - - - - - - - -
>
> Any hint?
There needs to be an empty line between the directive and its content block.
Ciao,
Marc 'BlackJack' Rintsch
--
“»I'm not going to ride on a magic carpet!« he hissed.
»I'm afraid of grounds!«
»You mean heights,« said Conina. »And stop being silly.«
»I know what I mean! It's the grounds that kill you!«”
-- Terry Pratchett, Sourcery
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users
Please use "Reply All" to reply to the list.