Skip to content

Convert <br> to line break #34

Description

@jhshi

The matrix is not formatted properly in terminal-leetcode.

image
image
HTML source:

<div class="question-description">
--
  | <p><p>Given a 2d grid map of <code>'1'</code>s (land) and <code>'0'</code>s (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.</p>
  |  
  | <p><i><b>Example 1:</b></i></p>
  | <pre>11110<br>11010<br>11000<br>00000</pre>
  | <p>Answer: 1</p>
  | <p><i><b>Example 2:</b></i></p>
  | <pre>11000<br>11000<br>00100<br>00011</pre>
  | <p>Answer: 3</p>
  |  
  | <p><b>Credits:</b><br />Special thanks to <a href="https://leetcode.com/discuss/user/mithmatt">@mithmatt</a> for adding this problem and creating all test cases.</p></p>
  | </div>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions