Content block expected for the "raw" directive; none found.
Saša Janiška <[email protected]> Sun, 24 May 2020 12:07:31 +0200
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
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?
Sincerely,
Gour
--
For him who has conquered the mind, the mind is the best of
friends; but for one who has failed to do so, his mind will
remain the greatest enemy.