zulip/zerver/tests/fixtures
Sumanth V Rao 033351609d markdown: Add data-codehilite-language attr for fenced code.
When converting fenced code markdown, we add the language (if specified)
in a data-attribute by tweaking the HTML generated. Doing so, allows the
frontend to make use of this attr to display view-in-playground option
for codeblocks.

We use pygments to get the lexer subclass name and use that instead of
directly using the language in the data-attribute. Doing so, helps us
map different language aliases (like `js` and `javascript`) into a common
variable (like `JavaScript`) - and avoids the client from dealing with
multiple tags corresponding to the same language.

The html structure for a message like this:

``` js
..content..
```

would now be:

<div class="codehilite" data-codehilite-language="JavaScript">
    <pre>..content..</pre>
</div>

Tests and fixtures amended.
2020-09-14 21:25:19 -07:00
..
apple auth: Add Sign in with Apple support. 2020-06-09 17:29:35 -07:00
email docs: Fix spelling errors caught by codespell. 2020-08-11 10:23:06 -07:00
import_fixtures models: Migration of Message.pub_date to date_sent, part 2. 2019-10-05 19:01:34 -07:00
ldap tests: For ldap tests, give each ldap user a unique password. 2020-02-19 14:46:29 -08:00
mattermost_fixtures docs: Fix spelling errors caught by codespell. 2020-08-11 10:23:06 -07:00
saml saml: Add option to restrict subdomain access based on SAML attributes. 2020-06-23 17:14:31 -07:00
slack_fixtures import: Support importing team icon from slack. 2020-02-03 14:09:05 -08:00
.gitignore
authors.json team: Rename contrib to contributors in page_params. 2020-07-23 10:22:28 -07:00
config.generate_data.json populate_db:Add uppercase topic name randomly. 2020-06-06 09:25:13 -04:00
csp_report.json
docs_url_preview_data.json
gitter_data.json gitter import: Add basic tests. 2018-07-23 08:36:30 -07:00
markdown_test_cases.json markdown: Add data-codehilite-language attr for fenced code. 2020-09-14 21:25:19 -07:00
narrow.json fixtures: Fix invalid JSON in narrow.json. 2020-08-07 11:12:32 -07:00
slack_message_conversion.json slack import: Add support for bold-italics formatting. 2018-06-02 09:01:55 -07:00
user_agents_unique