citusdata / citus_docs

Documentation for Citus. Distributed PostgreSQL as an extension.
Creative Commons Attribution 4.0 International
58 stars 59 forks source link

code-block:: psql only formats the first line in a code block #409

Open ozgune opened 7 years ago

ozgune commented 7 years ago

When I use ..code-block:: psql in our documentation, only the first code line gets formatted. Subsequent code block lines are formatted in grey.

For example, the following section in our documentation doesn't have the right formatting on its second line.

https://docs.citusdata.com/en/v6.2/tutorials/real-time-analytics-tutorial.html#distributing-tables-and-loading-data

.. code-block:: psql

\copy github_users from 'users.csv' with csv;
\copy github_events from 'events.csv' with csv;
begriffs commented 6 years ago

Dang, I expected this would be fixed by all the theme work since this issue was created, but nope. I also had suspected it was caused by the terminating semicolons which is technically incorrect with backslash commands. But the semicolons are no longer there and still no good highlighting. This still needs more research.

jonels-msft commented 4 years ago

This bug still exists (for instance in [0]) and I think needs to be fixed upstream in [1].

0: https://docs.citusdata.com/en/v8.3/get_started/tutorial_realtime_analytics.html#distributing-tables-and-loading-data 1: https://bitbucket.org/birkenfeld/pygments-main/src/19eebedfaad41803086b4f7224f1e6bd19a1ab51/pygments/lexers/sql.py#lines-237