-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use jekyll markdown converter #25319
Changes from 7 commits
43c0095
38bf3e2
718270c
b97826a
3e6b252
fc77e43
4b2c557
8108d6b
7960c9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,37 +63,37 @@ All heading elements—e.g., `<h1>`—and `<p>` are reset to have their `margin- | |
<tbody> | ||
<tr> | ||
<td> | ||
{% markdown %}`<h1></h1>`{% endmarkdown %} | ||
{{ "`<h1></h1>`" | markdownify }} | ||
</td> | ||
<td><span class="h1">h1. Bootstrap heading</span></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
{% markdown %}`<h2></h2>`{% endmarkdown %} | ||
{{ "`<h2></h2>`" | markdownify }} | ||
</td> | ||
<td><span class="h2">h2. Bootstrap heading</span></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
{% markdown %}`<h3></h3>`{% endmarkdown %} | ||
{{ "`<h3></h3>`" | markdownify }} | ||
</td> | ||
<td><span class="h3">h3. Bootstrap heading</span></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
{% markdown %}`<h4></h4>`{% endmarkdown %} | ||
{{ "`<h4></h4>`" | markdownify }} | ||
</td> | ||
<td><span class="h4">h4. Bootstrap heading</span></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
{% markdown %}`<h5></h5>`{% endmarkdown %} | ||
{{ "`<h5></h5>`" | markdownify }} | ||
</td> | ||
<td><span class="h5">h5. Bootstrap heading</span></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
{% markdown %}`<h6></h6>`{% endmarkdown %} | ||
{{ "`<h6></h6>`" | markdownify }} | ||
</td> | ||
<td><span class="h6">h6. Bootstrap heading</span></td> | ||
</tr> | ||
|
@@ -105,7 +105,7 @@ All heading elements—e.g., `<h1>`—and `<p>` are reset to have their `margin- | |
All lists—`<ul>`, `<ol>`, and `<dl>`—have their `margin-top` removed and a `margin-bottom: 1rem`. Nested lists have no `margin-bottom`. | ||
|
||
<div class="bd-example"> | ||
{% markdown %} | ||
{% capture markdown %} | ||
* Lorem ipsum dolor sit amet | ||
* Consectetur adipiscing elit | ||
* Integer molestie lorem at massa | ||
|
@@ -127,37 +127,34 @@ All lists—`<ul>`, `<ol>`, and `<dl>`—have their `margin-top` removed and a ` | |
6. Faucibus porta lacus fringilla vel | ||
7. Aenean sit amet erat nunc | ||
8. Eget porttitor lorem | ||
{% endmarkdown %} | ||
{% endcapture %} | ||
{{ markdown | markdownify }} | ||
</div> | ||
|
||
For simpler styling, clear hierarchy, and better spacing, description lists have updated `margin`s. `<dd>`s reset `margin-left` to `0` and add `margin-bottom: .5rem`. `<dt>`s are **bolded**. | ||
|
||
<div class="bd-example"> | ||
{% markdown %} | ||
<dl> | ||
<dt>Description lists</dt> | ||
<dd>A description list is perfect for defining terms.</dd> | ||
<dt>Euismod</dt> | ||
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem.</dd> | ||
<dd>Donec id elit non mi porta gravida at eget metus.</dd> | ||
<dt>Malesuada porta</dt> | ||
<dd>Etiam porta sem malesuada magna mollis euismod.</dd> | ||
</dl> | ||
{% endmarkdown %} | ||
<dl> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, this was moot indeed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I know :) That is why I said it was moot because there wasn't any markdown there in the first place. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My bad y'all 😅 |
||
<dt>Description lists</dt> | ||
<dd>A description list is perfect for defining terms.</dd> | ||
<dt>Euismod</dt> | ||
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem.</dd> | ||
<dd>Donec id elit non mi porta gravida at eget metus.</dd> | ||
<dt>Malesuada porta</dt> | ||
<dd>Etiam porta sem malesuada magna mollis euismod.</dd> | ||
</dl> | ||
</div> | ||
|
||
## Preformatted text | ||
|
||
The `<pre>` element is reset to remove its `margin-top` and use `rem` units for its `margin-bottom`. | ||
|
||
<div class="bd-example"> | ||
{% markdown %} | ||
<pre> | ||
.example-element { | ||
margin-bottom: 1rem; | ||
} | ||
</pre> | ||
{% endmarkdown %} | ||
</div> | ||
|
||
## Tables | ||
|
@@ -363,4 +360,4 @@ HTML5 adds [a new global attribute named `[hidden]`](https://developer.mozilla.o | |
`[hidden]` is not compatible with jQuery's `$(...).hide()` and `$(...).show()` methods. Therefore, we don't currently especially endorse `[hidden]` over other techniques for managing the `display` of elements. | ||
{% endcallout %} | ||
|
||
To merely toggle the visibility of an element, meaning its `display` is not modified and the element can still affect the flow of the document, use [the `.invisible` class]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/visibility/) instead. | ||
To merely toggle the visibility of an element, meaning its `display` is not modified and the element can still affect the flow of the document, use [the `.invisible` class]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/visibility/) instead. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't get what changed in this line since they are identical. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Guess your editor just added the missing newline at eof. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are missing the pullticks in all edited code below this too.