diff --git a/exampleSite/content/test-product/prose/_index.md b/exampleSite/content/test-product/prose/_index.md new file mode 100644 index 0000000..c92d69b --- /dev/null +++ b/exampleSite/content/test-product/prose/_index.md @@ -0,0 +1,5 @@ +--- +description: Prose +title: Prose +weight: 100 +--- diff --git a/exampleSite/content/test-product/prose/nobreak.md b/exampleSite/content/test-product/prose/nobreak.md new file mode 100644 index 0000000..75fb271 --- /dev/null +++ b/exampleSite/content/test-product/prose/nobreak.md @@ -0,0 +1,15 @@ +--- +description: Nobreak +title: Nobreak +weight: 100 +--- + +## No break shortcode `nb` + +Using the `nb` shorcode should stop words breaking across lines. A common use case would be on things like product names, such as {{}}NGINX Plus (nobreak) {{}} vs NGINX Plus (with break). + +Usage + +``` markdown +{{}}NGINX Plus{{}} +``` diff --git a/layouts/shortcodes/nb.html b/layouts/shortcodes/nb.html new file mode 100644 index 0000000..f10d873 --- /dev/null +++ b/layouts/shortcodes/nb.html @@ -0,0 +1 @@ +{{ .Inner | markdownify }}