Skip to content

Many models appear to incorrectly use Markdown lists in the info tab #440

@LaCuneta

Description

@LaCuneta

Many models in the library appear to incorrectly use Markdown lists. CA 1D Elementary is a good example:

Initialization & Running:
- SETUP-SINGLE initializes the model with a single cell on in the center.
- SETUP-RANDOM initializes the model with a percentage of the cells "on." The percentage on is determined by the DENSITY slider.
- AUTO-CONTINUE? CA automatically wraps top the top once it reaches the last row when the toggle is on
- GO begins running the model with the currently set rule. It runs until the end of the screen.  If it is pressed again, the CA continues the current run from the top, stopping again at the end of the screen.
- FOREGROUND & BACKGROUND set the "on" and "off" cell colors respectively.
- SHOW-RULES clears the view and gives a graphical preview of the rules.  The 8 cases are displayed across the top of the world. To run the model, you must press either SETUP-SINGLE or SETUP-RANDOM and then click GO.

The hyphen-based lists are supposed to show up as an HTML unordered list element (<ul>), but because there is no double-line break before the first entry after Initializing Running: the Markdown parser doesn't detect the list and format them, so they just show up as raw text. They are still legible, but I think the text is much more readable as a real list with indentation and the bullet character.

I used a regular expression ^(?!-).+\n- to search the models in the library library and found a lot more examples of this. Unfortunately it also picks up some false positives, so a simple find and replace might not be possible.

I would hazard a guess that the hyphen-based lists were part of the original info tab text before the Markdown display was added, and they were just never updated for the new format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions