Skip to content

Commit 1043730

Browse files
committed
main - c771a01 build: prevent markdown styling from bleeding into examples (#31358)
1 parent e9a27bb commit 1043730

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+323
-323
lines changed

docs-content/guides/creating-a-custom-form-field-control.md.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p>For example in this guide we&#39;ll learn how to create a custom input for inputting US telephone
55
numbers and hook it up to work with <code>&lt;mat-form-field&gt;</code>. Here is what we&#39;ll build by the end of this
66
guide:</p>
7-
<div material-docs-example="form-field-custom-control"></div>
7+
</div><div material-docs-example="form-field-custom-control"></div><div class="docs-markdown">
88

99
<p>In order to learn how to build custom form field controls, let&#39;s start with a simple input component
1010
that we want to work inside the form field. For example, a phone number input that segments the

docs-content/guides/creating-a-custom-stepper-using-the-cdk-stepper.md.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="docs-markdown"><h1>Creating a custom stepper using the CDK stepper</h1><p>The <a href="https://material.angular.dev/cdk/stepper/overview">CDK stepper</a> allows to build a custom stepper which you can completely style yourself without any specific Material Design styling.</p>
22
<p>In this guide, we&#39;ll learn how we can build our own custom stepper using the CDK stepper. Here is what we&#39;ll build by the end of this guide:</p>
3-
<div material-docs-example="cdk-custom-stepper-without-form"></div>
3+
</div><div material-docs-example="cdk-custom-stepper-without-form"></div><div class="docs-markdown">
44

55

66
<h2 id="create-our-custom-stepper-component" class="docs-header-link">

docs-content/overviews/cdk/a11y/a11y.md.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,14 @@ <h3 id="focusmonitor" class="docs-header-link">
192192
</code></pre>
193193
<p>Any element that is monitored by calling <code>monitor</code> should eventually be unmonitored by calling
194194
<code>stopMonitoring</code> with the same element.</p>
195-
<div material-docs-example="focus-monitor-overview"></div>
195+
</div><div material-docs-example="focus-monitor-overview"></div><div class="docs-markdown">
196196

197197
<p>It is possible to falsify the <code>FocusOrigin</code> when setting the focus programmatically by using the
198198
<code>focusVia</code> method of <code>FocusMonitor</code>. This method accepts an element to focus and the <code>FocusOrigin</code>
199199
to use. If the element being focused is currently being monitored by the <code>FocusMonitor</code> it will
200200
report the <code>FocusOrigin</code> that was passed in. If the element is not currently being monitored, it
201201
will just be focused like normal.</p>
202-
<div material-docs-example="focus-monitor-focus-via"></div>
202+
</div><div material-docs-example="focus-monitor-focus-via"></div><div class="docs-markdown">
203203

204204

205205
<h4 id="cdkmonitorelementfocus-and-cdkmonitorsubtreefocus" class="docs-header-link">
@@ -211,7 +211,7 @@ <h4 id="cdkmonitorelementfocus-and-cdkmonitorsubtreefocus" class="docs-header-li
211211
<code>checkChildren</code> set to <code>false</code>. <code>cdkMonitorSubtreeFocus</code> is the equivalent of calling <code>monitor</code> on
212212
the host element with <code>checkChildren</code> set to <code>true</code>. Each of these directives has an <code>@Output()</code>
213213
<code>cdkFocusChange</code> that will emit the new <code>FocusOrigin</code> whenever it changes.</p>
214-
<div material-docs-example="focus-monitor-directives"></div>
214+
</div><div material-docs-example="focus-monitor-directives"></div><div class="docs-markdown">
215215

216216

217217
<h3 id="styling-utilities" class="docs-header-link">

docs-content/overviews/cdk/accordion/accordion.md.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
foundation upon which you can build your own custom accordion component. CDK accordion provides
33
logic for the accordion interaction pattern without any styles. You can customize the accordion&#39;s
44
appearance based on your application&#39;s needs.</p>
5-
<div material-docs-example="cdk-accordion-overview"></div>
5+
</div><div material-docs-example="cdk-accordion-overview"></div><div class="docs-markdown">
66

77

88
<h3 id="accessibility" class="docs-header-link">

docs-content/overviews/cdk/clipboard/clipboard.md.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h3 id="click-an-element-to-copy" class="docs-header-link">
88
existing element. The directive selector doubles as an <code>@Input()</code> for the text to be copied.</p>
99
<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;avatar.jpg&quot;</span> <span class="hljs-attr">alt</span>=<span class="hljs-string">&quot;Hero avatar&quot;</span> [<span class="hljs-attr">cdkCopyToClipboard</span>]=<span class="hljs-string">&quot;getShortBio()&quot;</span>&gt;</span>
1010
</code></pre>
11-
<div material-docs-example="cdk-clipboard-overview"></div>
11+
</div><div material-docs-example="cdk-clipboard-overview"></div><div class="docs-markdown">
1212

1313

1414
<h3 id="programmatically-copy-a-string" class="docs-header-link">

docs-content/overviews/cdk/dialog/dialog.md.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h3 id="initial-setup" class="docs-header-link">
1616

1717
<span class="hljs-keyword">@include</span> cdk.overlay();
1818
</code></pre>
19-
<div material-docs-example="cdk-dialog-overview"></div>
19+
</div><div material-docs-example="cdk-dialog-overview"></div><div class="docs-markdown">
2020

2121
<p>You can open a dialog by calling the <code>open</code> method either with a component or with a <code>TemplateRef</code>
2222
representing the dialog content. The method additionally accepts an optional configuration object.
@@ -83,7 +83,7 @@ <h4 id="styling-the-dialog-component" class="docs-header-link">
8383
})
8484
<span class="hljs-keyword">class</span> <span class="hljs-title class_">MyDialog</span> {}
8585
</code></pre>
86-
<div material-docs-example="cdk-dialog-styling"></div>
86+
</div><div material-docs-example="cdk-dialog-styling"></div><div class="docs-markdown">
8787

8888

8989
<h4 id="providing-a-custom-dialog-container" class="docs-header-link">
@@ -155,7 +155,7 @@ <h3 id="sharing-data-with-the-dialog-component" class="docs-header-link">
155155
Hello, {{data.name}}
156156
<span class="hljs-tag">&lt;/<span class="hljs-name">ng-template</span>&gt;</span>
157157
</code></pre>
158-
<div material-docs-example="cdk-dialog-data"></div>
158+
</div><div material-docs-example="cdk-dialog-data"></div><div class="docs-markdown">
159159

160160

161161
<h3 id="accessibility" class="docs-header-link">

docs-content/overviews/cdk/drag-drop/drag-drop.md.html

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h3 id="getting-started" class="docs-header-link">
1111
features. You can now add the <code>cdkDrag</code> directive to elements to make them draggable. When
1212
outside of a <code>cdkDropList</code> element, draggable elements can be freely moved around the page.
1313
You can add <code>cdkDropList</code> elements to constrain where elements may be dropped.</p>
14-
<div material-docs-example="cdk-drag-drop-overview"></div>
14+
</div><div material-docs-example="cdk-drag-drop-overview"></div><div class="docs-markdown">
1515

1616

1717
<h3 id="reordering-lists" class="docs-header-link">
@@ -22,7 +22,7 @@ <h3 id="reordering-lists" class="docs-header-link">
2222
reorderable collection. Items will automatically rearrange as an element moves. Note
2323
that this will <em>not</em> update your data model; you can listen to the <code>cdkDropListDropped</code> event to
2424
update the data model once the user finishes dragging.</p>
25-
<div material-docs-example="cdk-drag-drop-sorting"></div>
25+
</div><div material-docs-example="cdk-drag-drop-sorting"></div><div class="docs-markdown">
2626

2727

2828
<h3 id="transferring-items-between-lists" class="docs-header-link">
@@ -32,7 +32,7 @@ <h3 id="transferring-items-between-lists" class="docs-header-link">
3232
<p>The <code>cdkDropList</code> directive supports transferring dragged items between connected drop zones.
3333
You can connect one or more <code>cdkDropList</code> instances together by setting the <code>cdkDropListConnectedTo</code>
3434
property or by wrapping the elements in an element with the <code>cdkDropListGroup</code> attribute.</p>
35-
<div material-docs-example="cdk-drag-drop-connected-sorting"></div>
35+
</div><div material-docs-example="cdk-drag-drop-connected-sorting"></div><div class="docs-markdown">
3636

3737
<p>Note that <code>cdkDropListConnectedTo</code> works both with a direct reference to another <code>cdkDropList</code>, or
3838
by referencing the <code>id</code> of another drop container:</p>
@@ -54,7 +54,7 @@ <h3 id="transferring-items-between-lists" class="docs-header-link">
5454
}
5555
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
5656
</code></pre>
57-
<div material-docs-example="cdk-drag-drop-connected-sorting-group"></div>
57+
</div><div material-docs-example="cdk-drag-drop-connected-sorting-group"></div><div class="docs-markdown">
5858

5959

6060
<h3 id="attaching-data" class="docs-header-link">
@@ -164,7 +164,7 @@ <h3 id="customizing-the-drag-area-using-a-handle" class="docs-header-link">
164164
restrict the user to only be able to do so using a handle element, you can do it by adding the
165165
<code>cdkDragHandle</code> directive to an element inside of <code>cdkDrag</code>. Note that you can have as many
166166
<code>cdkDragHandle</code> elements as you want:</p>
167-
<div material-docs-example="cdk-drag-drop-handle"></div>
167+
</div><div material-docs-example="cdk-drag-drop-handle"></div><div class="docs-markdown">
168168

169169

170170
<h3 id="customizing-the-drag-preview" class="docs-header-link">
@@ -180,7 +180,7 @@ <h3 id="customizing-the-drag-preview" class="docs-header-link">
180180
<p>Note that the cloned element will remove its <code>id</code> attribute in order to avoid having multiple
181181
elements with the same <code>id</code> on the page. This will cause any CSS that targets that <code>id</code> not
182182
to be applied.</p>
183-
<div material-docs-example="cdk-drag-drop-custom-preview"></div>
183+
</div><div material-docs-example="cdk-drag-drop-custom-preview"></div><div class="docs-markdown">
184184

185185

186186
<h3 id="drag-preview-insertion-point" class="docs-header-link">
@@ -228,7 +228,7 @@ <h3 id="customizing-the-drag-placeholder" class="docs-header-link">
228228
show where it will be placed when it&#39;s dropped. By default the placeholder is a clone of the element
229229
that is being dragged, however you can replace it with a custom one using the <code>*cdkDragPlaceholder</code>
230230
directive:</p>
231-
<div material-docs-example="cdk-drag-drop-custom-placeholder"></div>
231+
</div><div material-docs-example="cdk-drag-drop-custom-placeholder"></div><div class="docs-markdown">
232232

233233

234234
<h3 id="list-orientation" class="docs-header-link">
@@ -237,7 +237,7 @@ <h3 id="list-orientation" class="docs-header-link">
237237
</h3>
238238
<p>The <code>cdkDropList</code> directive assumes that lists are vertical by default. This can be
239239
changed by setting the <code>cdkDropListOrientation</code> property to <code>horizontal</code>.</p>
240-
<div material-docs-example="cdk-drag-drop-horizontal-sorting"></div>
240+
</div><div material-docs-example="cdk-drag-drop-horizontal-sorting"></div><div class="docs-markdown">
241241

242242

243243
<h3 id="list-wrapping" class="docs-header-link">
@@ -251,7 +251,7 @@ <h3 id="list-wrapping" class="docs-header-link">
251251
will use a different strategy of sorting the elements that works by moving them in the DOM. It has
252252
the advantage of allowing the items to wrap to the next line, but it <strong>cannot</strong> animate the
253253
sorting action.</p>
254-
<div material-docs-example="cdk-drag-drop-mixed-sorting"></div>
254+
</div><div material-docs-example="cdk-drag-drop-mixed-sorting"></div><div class="docs-markdown">
255255

256256

257257
<h3 id="copying-items-from-one-list-to-another" class="docs-header-link">
@@ -270,7 +270,7 @@ <h3 id="copying-items-from-one-list-to-another" class="docs-header-link">
270270
<p>Combining <code>cdkDropListHasAnchor</code> and <code>cdkDropListSortingDisabled</code> makes it possible to construct a
271271
list that user copies items from, but doesn&#39;t necessarily transfer out of (e.g. a product list and
272272
a shopping cart).</p>
273-
<div material-docs-example="cdk-drag-drop-copy-list"></div>
273+
</div><div material-docs-example="cdk-drag-drop-copy-list"></div><div class="docs-markdown">
274274

275275

276276
<h3 id="restricting-movement-within-an-element" class="docs-header-link">
@@ -282,7 +282,7 @@ <h3 id="restricting-movement-within-an-element" class="docs-header-link">
282282
selector and looking up the DOM until it finds an element that matches it. If a match is found,
283283
it&#39;ll be used as the boundary outside of which the element can&#39;t be dragged. <code>cdkDragBoundary</code> can
284284
also be used when <code>cdkDrag</code> is placed inside a <code>cdkDropList</code>.</p>
285-
<div material-docs-example="cdk-drag-drop-boundary"></div>
285+
</div><div material-docs-example="cdk-drag-drop-boundary"></div><div class="docs-markdown">
286286

287287

288288
<h3 id="restricting-movement-along-an-axis" class="docs-header-link">
@@ -292,7 +292,7 @@ <h3 id="restricting-movement-along-an-axis" class="docs-header-link">
292292
<p>By default, <code>cdkDrag</code> allows free movement in all directions. To restrict dragging to a
293293
specific axis, you can set <code>cdkDragLockAxis</code> on <code>cdkDrag</code> or <code>cdkDropListLockAxis</code> on <code>cdkDropList</code>
294294
to either <code>&quot;x&quot;</code> or <code>&quot;y&quot;</code>.</p>
295-
<div material-docs-example="cdk-drag-drop-axis-lock"></div>
295+
</div><div material-docs-example="cdk-drag-drop-axis-lock"></div><div class="docs-markdown">
296296

297297

298298
<h3 id="alternate-drag-root-element" class="docs-header-link">
@@ -304,7 +304,7 @@ <h3 id="alternate-drag-root-element" class="docs-header-link">
304304
up the DOM until it finds an element that matches the selector. If an element is found, it&#39;ll become
305305
the element that is moved as the user is dragging. This is useful for cases like making a dialog
306306
draggable.</p>
307-
<div material-docs-example="cdk-drag-drop-root-element"></div>
307+
</div><div material-docs-example="cdk-drag-drop-root-element"></div><div class="docs-markdown">
308308

309309

310310
<h3 id="controlling-which-items-can-be-moved-into-a-container" class="docs-header-link">
@@ -316,7 +316,7 @@ <h3 id="controlling-which-items-can-be-moved-into-a-container" class="docs-heade
316316
<code>cdkDropListEnterPredicate</code> which will be called whenever an item is about to enter a
317317
new container. Depending on whether the predicate returns <code>true</code> or <code>false</code>, the item may or may not
318318
be allowed into the new container.</p>
319-
<div material-docs-example="cdk-drag-drop-enter-predicate"></div>
319+
</div><div material-docs-example="cdk-drag-drop-enter-predicate"></div><div class="docs-markdown">
320320

321321

322322
<h3 id="disabled-dragging" class="docs-header-link">
@@ -327,7 +327,7 @@ <h3 id="disabled-dragging" class="docs-header-link">
327327
<code>cdkDragDisabled</code> input on a <code>cdkDrag</code> item. Furthermore, you can disable an entire list
328328
using the <code>cdkDropListDisabled</code> input on a <code>cdkDropList</code> or a particular handle via
329329
<code>cdkDragHandleDisabled</code> on <code>cdkDragHandle</code>.</p>
330-
<div material-docs-example="cdk-drag-drop-disabled"></div>
330+
</div><div material-docs-example="cdk-drag-drop-disabled"></div><div class="docs-markdown">
331331

332332

333333
<h3 id="disabled-sorting" class="docs-header-link">
@@ -339,7 +339,7 @@ <h3 id="disabled-sorting" class="docs-header-link">
339339
<code>cdkDropListSortingDisabled</code> input which will prevent the items in a <code>cdkDropList</code> from sorting,
340340
in addition to preserving the dragged item&#39;s initial position in the source list, if the user
341341
decides to return the item.</p>
342-
<div material-docs-example="cdk-drag-drop-disabled-sorting"></div>
342+
</div><div material-docs-example="cdk-drag-drop-disabled-sorting"></div><div class="docs-markdown">
343343

344344

345345
<h3 id="delayed-dragging" class="docs-header-link">
@@ -352,7 +352,7 @@ <h3 id="delayed-dragging" class="docs-header-link">
352352
cases like these you can delay the dragging sequence using the <code>cdkDragStartDelay</code> input which
353353
will wait for the user to hold down their pointer for the specified number of milliseconds before
354354
moving the element.</p>
355-
<div material-docs-example="cdk-drag-drop-delay"></div>
355+
</div><div material-docs-example="cdk-drag-drop-delay"></div><div class="docs-markdown">
356356

357357

358358
<h3 id="changing-the-standalone-drag-position" class="docs-header-link">
@@ -363,7 +363,7 @@ <h3 id="changing-the-standalone-drag-position" class="docs-header-link">
363363
moved by a user. The element&#39;s position can be explicitly set, however, via the
364364
<code>cdkDragFreeDragPosition</code> input. Applications commonly use this, for example, to restore a
365365
draggable&#39;s position after a user has navigated away and then returned.</p>
366-
<div material-docs-example="cdk-drag-drop-free-drag-position"></div>
366+
</div><div material-docs-example="cdk-drag-drop-free-drag-position"></div><div class="docs-markdown">
367367

368368

369369
<h3 id="controlling-whether-an-item-can-be-sorted-into-a-particular-index" class="docs-header-link">
@@ -374,7 +374,7 @@ <h3 id="controlling-whether-an-item-can-be-sorted-into-a-particular-index" class
374374
this behavior by setting a <code>cdkDropListSortPredicate</code>. The predicate function will be called
375375
whenever an item is about to be moved into a new index. If the predicate returns <code>true</code>, the
376376
item will be moved into the new index, otherwise it will keep its current position.</p>
377-
<div material-docs-example="cdk-drag-drop-sort-predicate"></div>
377+
</div><div material-docs-example="cdk-drag-drop-sort-predicate"></div><div class="docs-markdown">
378378

379379

380380
<h3 id="integrations-with-angular-material" class="docs-header-link">
@@ -388,13 +388,13 @@ <h4 id="sortable-table" class="docs-header-link">
388388
Sortable table
389389
</h4>
390390
<p>This example shows how you can set up a table which supports re-ordering of tabs.</p>
391-
<div material-docs-example="cdk-drag-drop-table"></div>
391+
</div><div material-docs-example="cdk-drag-drop-table"></div><div class="docs-markdown">
392392

393393

394394
<h4 id="sortable-tabs" class="docs-header-link">
395395
<span header-link="sortable-tabs"></span>
396396
Sortable tabs
397397
</h4>
398398
<p>Example of how to add sorting support to a <code>mat-tab-group</code>.</p>
399-
<div material-docs-example="cdk-drag-drop-tabs"></div>
399+
</div><div material-docs-example="cdk-drag-drop-tabs"></div><div class="docs-markdown">
400400
</div>

docs-content/overviews/cdk/layout/layout.md.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h3 id="breakpointobserver" class="docs-header-link">
88
size ranges between breakpoints correspond to different standard screen sizes. </p>
99
<p><code>BreakpointObserver</code> lets you evaluate media queries to determine the current screen size and
1010
react to changes when the viewport size crosses a breakpoint.</p>
11-
<div material-docs-example="breakpoint-observer-overview"></div>
11+
</div><div material-docs-example="breakpoint-observer-overview"></div><div class="docs-markdown">
1212

1313

1414
<h4 id="check-the-current-viewport-size" class="docs-header-link">

0 commit comments

Comments
 (0)