Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #39 from openedx/nedbat/narrow
Browse files Browse the repository at this point in the history
fix: keep text narrow to avoid too-wide display on GitHub
  • Loading branch information
nedbat authored Sep 14, 2023
2 parents 9505dfa + 17ed202 commit a89eefd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
4 changes: 0 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ welcome.

The cheatsheet: `mdrst.rst`_.

I started by editing a document with side-by-side examples of both Markdown and
RST, but it was difficult to edit, and difficult to know that I had gotten all
of the details right.

In this repo are two files: `md.md`_ and `rst.rst`_. They have parallel
heading structures, each showing how their format represents each construct.
Together, they produce `mdrst.rst`_, which shows the examples side-by-side.
Expand Down
7 changes: 4 additions & 3 deletions md.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Look at this output:

```
$ ls /usr/
bin lib libexec local sbin share
bin lib libexec
```

Look at this code:
Expand Down Expand Up @@ -117,9 +117,10 @@ Markdown has no specialized syntax for notes.

### Footnotes

Extended version of markdown does support footnotes[^1].
Extended Markdown supports footnotes[^1].

[^1]: The footnote will mostly be displayed in the bottom no matter where you define it, hence _the name_.
[^1]: The footnote will mostly be displayed in the bottom
no matter where you define it, hence _the name_.

### Warnings

Expand Down
9 changes: 5 additions & 4 deletions mdrst.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Basic Stuff

```
$ ls /usr/
bin lib libexec local sbin share
bin lib libexec
```

Look at this code:
Expand All @@ -99,7 +99,7 @@ Basic Stuff
Look at this output::

$ ls /usr/
bin lib libexec local sbin share
bin lib libexec

Look at this code:

Expand Down Expand Up @@ -368,9 +368,10 @@ Notes etc
* - Footnotes
- ::

Extended version of markdown does support footnotes[^1].
Extended Markdown supports footnotes[^1].

[^1]: The footnote will mostly be displayed in the bottom no matter where you define it, hence _the name_.
[^1]: The footnote will mostly be displayed in the bottom
no matter where you define it, hence _the name_.

- ::

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
markdown2
docutils
edx_lint
pygments
2 changes: 1 addition & 1 deletion rst.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Code blocks
Look at this output::

$ ls /usr/
bin lib libexec local sbin share
bin lib libexec

Look at this code:

Expand Down

0 comments on commit a89eefd

Please sign in to comment.