Skip to content

Can't mix Markdown and HTML #879

Closed

Description

@Didayolo

Previously, HTML was not interpreted for the documentation pages of benchmarks:

Now, it works when having Markdown only, and when having HTML only. However, using HTML inside Markdown files break the display.

It is due to the way HTML is detected in this file:

https://github.com/codalab/codabench/blob/develop/src/static/riot/competitions/detail/_tabs.tag

        self.isHTML = function (page_content) {
            return /<(?=.*? .*?\/ ?>|br|hr|input|!--|wbr)[a-z]+.*?>|<([a-z]+).*?<\/\1>/i.test(page_content);
        }

Activity

  1. added
    Enhancement
    Post-it
    on May 17, 2023
  2. self-assigned this
    on Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

EnhancementPost-itUI

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions