Skip to content

Commit f4e617a

Browse files
authored
docs: custom marked formatter for lead-in blockquotes (#3031)
1 parent 786b2e4 commit f4e617a

File tree

8 files changed

+18
-11
lines changed

8 files changed

+18
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file. See
4-
[standard-version](https://github.com/conventional-changelog/standard-version) for commit
5-
guidelines.
3+
> All notable changes to this project will be documented in this file. See
4+
> [standard-version](https://github.com/conventional-changelog/standard-version) for commit
5+
> guidelines.
66
77
<a name="2.0.0-rc.15"></a>
88

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing
22

3-
👍🎉 First off, thanks for taking the time to contribute! 🎉👍
3+
> 👍🎉 First off, thanks for taking the time to contribute! 🎉👍
44
55
## Playground & Issue Reports
66

docs/markdown/misc/settings/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Settings
22

3+
> BootstrapVue provides a few options for customizing component default values, and more.
4+
35
## Configuring BootstrapVue defaults
46

57
BootstrapVue is pre-configured for the default Bootstrap V4.x configuration. It assumes the

docs/markdown/reference/theming/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Theming Bootstrap & BootstrapVue
22

3-
Theming is accomplished by Sass variables, Sass maps, and custom CSS. There’s no dedicated theme
4-
stylesheet; instead, you can enable the built-in theme to add gradients, shadows, and more.
3+
> Theming is accomplished by Sass variables, Sass maps, and custom CSS. There’s no dedicated theme
4+
> stylesheet; instead, you can enable the built-in theme to add gradients, shadows, and more.
55
66
While BootstrapVue uses Bootstrap's CSS, certain features of BootstrapVue uses custom CSS (i.e.
77
stacked tables, etc). Our custom CSS relies on variables defined the Bootstrap V4.x SCSS. The

docs/markdown/reference/validation/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Form Validation
22

3-
BootstrapVue does not include form validation by default; we leave that up to the many existing form
4-
validation plugins. Below are some examples of plugins and how they may be integrated.
3+
> BootstrapVue does not include form validation by default; we leave that up to the many existing
4+
> form validation plugins. Below are some examples of plugins and how they may be integrated.
55
66
## Vuelidate
77

docs/nuxt.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ renderer.heading = function(text, level, raw, slugger) {
4242
return `<h${level} id="${link}">${getTextMarkup(text + anchor)}</h${level}>\n`
4343
}
4444

45+
// Convert lead-in blockquote paragraphs to true bootstrap docs leads
46+
renderer.blockquote = function(text) {
47+
return text.replace('<p>', '<p class="bd-lead">')
48+
}
49+
4550
// BS4 table support for markdown renderer
4651
const originalTable = renderer.table
4752
renderer.table = function(header, body) {

src/components/collapse/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Collapse
22

3-
toggle content visibility on your pages. Includes support for making accordions.
3+
> Esily toggle content visibility on your pages. Includes support for making accordions.
44
55
```html
66
<div>

src/components/table/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Tables
22

3-
> For displaying tabular data. `<b-table>` supports pagination, filtering, sorting, custom
4-
> rendering, events, and asynchronous data.
3+
> For displaying tabular data, `<b-table>` supports pagination, filtering, sorting, custom
4+
> rendering, various style options, events, and asynchronous data.
55
66
**Example: Basic usage**
77

0 commit comments

Comments
 (0)