Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 61 additions & 10 deletions notebooks/md-table-tests-v1.ipynb
Original file line number Diff line number Diff line change
@@ -1,27 +1,36 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "eec14d4a-3c89-4e2a-a539-6b73fcdec35e",
"metadata": {},
"source": [
"### Table with uneven number of \"|\"\n",
"\n",
" |col1 | col 2 | col 3 |\n",
" -- | --- | --- \n",
"col1 | col 2 | col 3|\n",
"\n"
]
},
{
"cell_type": "markdown",
"id": "bf9611b0-d80b-46db-8f01-93d3ece44ba9",
"metadata": {},
"source": [
Copy link
Author

@amit1rrr amit1rrr Mar 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modified markdown table. It should render

  • as diff highlighted raw markdown text
  • with each row on new line


Reply via ReviewNB

"Bold header without empty line\n",
"**Table 1.**\n",
"|col1|col2|\n",
"|---|---|\n",
"|a|b|"
"|col1|col2|new-col3|\n",
"|---|---|---|\n",
"|a-modififed|deleted|added|"
]
},
{
"cell_type": "markdown",
"id": "41fc3148-f1e6-4baa-b03c-c4c55096673d",
"metadata": {},
"source": [
"Normal header without empty line\n",
"Table 1\n",
"|col1|col2|\n",
"|---|---|\n",
"|a|b|"
"Normal header without empty line(deleted)"
]
},
{
Expand All @@ -34,13 +43,55 @@
"\n",
"|col1|col2|\n",
"|---|---|\n",
"|a|b|"
"|a|b|\n",
"\n",
"**Table 2 added.**\n",
"| Keystroke | Action |\n",
"|-----------------------------------|--------------------------------------------|\n",
"| ``Ctrl-a-modified`` | Move v2 cursor to the beginning of the line|\n",
"| ``Ctrl-e`` | Move cursor to the end of the line |\n",
"| ``Ctrl-b`` or the left arrow key | Move cursor back one character |\n",
"| ``Ctrl-f`` or the right arrow key | Move cursor forward one character |\n"
]
},
{
"cell_type": "markdown",
"id": "e7349595-bb7a-4a5b-96db-639bfe89c002",
"metadata": {},
"source": [
"| Command | Description |\n",
"|-----------------|-------------------------------------------------------------|\n",
"| ``list`` | Show the current location in the file |\n",
"| ``h(elp)`` | Show a list of commands, or find help on a specific command |\n",
"| ``q(uit)`` | Quit the debugger and the program |\n",
"| ``c(ontinue)`` | Quit the debugger, continue in the program |\n",
"| ``n(ext)`` | Go to the next step of the program |\n",
"| ``<enter>`` | Repeat the previous command |\n",
"| ``p(rint)`` | Print variables |\n",
"| ``s(tep)`` | Step into a subroutine |\n",
"| ``r(eturn)`` | Return out of a subroutine |"
]
},
{
"cell_type": "markdown",
"id": "3d7f2171-0271-4432-a8d5-ca75fc4b3ce1",
"metadata": {},
"source": [
"## Miscellaneous Shortcuts\n",
"Finally, there are a few miscellaneous shortcuts that don't fit into any of the preceding categories, but are nevertheless useful to know:\n",
"| Keystroke | Action |\n",
"|-------------------------------|--------------------------------------------|\n",
"| ``Cmd-ab`` | undo terminal screen |\n",
"| ``Ctrl-c`` | Interrupt current Python command |\n",
"| ``Ctrl-d`` | Exit IPython session |\n",
"\n",
"The Ctrl-c in particular can be useful when you inadvertently start a very long-running job."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "84634040-96f5-4028-b6e1-a5269f9d4dbf",
"id": "9489fa58-582c-4bd9-8e08-27402adcdd80",
"metadata": {},
"outputs": [],
"source": []
Expand Down