Markwon/assets/js/29.230c7321.js
Dimitry Ivanov b00d0efa9d deploy
2021-01-12 12:50:41 +03:00

1 line
18 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{281:function(t,e,r){"use strict";r.r(e);var a=r(0),i=Object(a.a)({},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"content"},[t._m(0),t._v(" "),r("LegacyWarning"),t._v(" "),r("p",[t._v("Here is the list of properties that can be configured via "),r("code",[t._v("SpannableTheme")]),t._v(". If you wish to control what\nis out of this list, you can use "),r("router-link",{attrs:{to:"/docs/v2/factory.html"}},[t._v("SpannableFactory")]),t._v("\nabstraction which lets you to gather full control of Spans that are used to display markdown.")],1),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),r("ThemeProperty",{attrs:{name:"linkColor",type:"@ColorInt int",defaults:"Default link color of a context where markdown is displayed <sup>*</sup>"}}),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),r("p",[t._v("Starting margin before text content for the:")]),t._v(" "),t._m(7),t._v(" "),r("ThemeProperty",{attrs:{name:"blockMargin",type:"@Px int",defaults:"24dp"}}),t._v(" "),t._m(8),t._v(" "),t._m(9),t._v(" "),t._m(10),t._v(" "),t._m(11),t._v(" "),r("p",[t._v("Width of a blockquote stripe")]),t._v(" "),r("ThemeProperty",{attrs:{name:"blockQuoteWidth",type:"@Px int",defaults:"1/4 of the <a href='#block-margin'>block margin</a>"}}),t._v(" "),t._m(12),t._v(" "),r("p",[t._v("Color of a blockquote stripe")]),t._v(" "),r("ThemeProperty",{attrs:{name:"blockQuoteColor",type:"@ColorInt int",defaults:"textColor with <code>25</code> (0-255) alpha value"}}),t._v(" "),t._m(13),t._v(" "),t._m(14),t._v(" "),r("p",[t._v("Controls the color of a list item. For ordered list: leading number,\nfor unordered list: bullet.")]),t._v(" "),t._m(15),t._v(" "),t._m(16),t._v(" "),r("ThemeProperty",{attrs:{name:"listItemColor",type:"@ColorInt int",defaults:"Text color"}}),t._v(" "),t._m(17),t._v(" "),r("p",[t._v("Border width of a bullet list item (level 2)")]),t._v(" "),t._m(18),t._v(" "),r("ThemeProperty",{attrs:{name:"bulletListItemStrokeWidth",type:"@Px int",defaults:"Stroke width of TextPaint"}}),t._v(" "),t._m(19),t._v(" "),r("p",[t._v("The width of the bullet item")]),t._v(" "),t._m(20),t._v(" "),r("ThemeProperty",{attrs:{name:"bulletWidth",type:"@Px int",defaults:"min(<a href='#block-margin'>blockMargin</a>, lineHeight) / 2"}}),t._v(" "),t._m(21),t._v(" "),t._m(22),t._v(" "),t._m(23),t._v(" "),r("ThemeProperty",{attrs:{name:"codeTextColor",type:"@ColorInt int",defaults:"Content text color"}}),t._v(" "),t._m(24),t._v(" "),t._m(25),t._v(" "),r("ThemeProperty",{attrs:{name:"codeBackgroundColor",type:"@ColorInt int",defaults:"<a href='#inline-code-text-color'>inline code text color</a> with 25 (0-255) alpha"}}),t._v(" "),t._m(26),t._v(" "),t._m(27),r("ThemeProperty",{attrs:{name:"codeBlockTextColor",type:"@ColorInt int",defaults:"<a href='#inline-code-text-color'>inline code text color</a>"}}),t._v(" "),t._m(28),t._v(" "),t._m(29),r("ThemeProperty",{attrs:{name:"codeBlockBackgroundColor",type:"@ColorInt int",defaults:"<a href='#inline-code-background-color'>inline code background color</a>"}}),t._v(" "),t._m(30),t._v(" "),r("p",[t._v("Leading margin for the block code content")]),t._v(" "),r("ThemeProperty",{attrs:{name:"codeMultilineMargin",type:"@Px int",defaults:"8dip"}}),t._v(" "),t._m(31),t._v(" "),r("p",[t._v("Typeface of code content")]),t._v(" "),r("ThemeProperty",{attrs:{name:"codeTypeface",type:"android.graphics.Typeface",defaults:"Typeface.MONOSPACE"}}),t._v(" "),t._m(32),t._v(" "),r("p",[t._v("Text size of code content")]),t._v(" "),r("ThemeProperty",{attrs:{name:"codeTextSize",type:"@Px int",defaults:"(Content text size) * 0.87 if no custom <a href='#code-typeface'>Typeface</a> was set, otherwise (content text size)"}}),t._v(" "),t._m(33),t._v(" "),t._m(34),t._v(" "),r("p",[t._v("The height of a brake under H1 & H2")]),t._v(" "),r("ThemeProperty",{attrs:{name:"headingBreakHeight",type:"@Px int",defaults:"Stroke width of context TextPaint"}}),t._v(" "),t._m(35),t._v(" "),r("p",[t._v("The color of a brake under H1 & H2")]),t._v(" "),r("ThemeProperty",{attrs:{name:"headingBreakColor",type:"@ColorInt int",defaults:"(text color) with 75 (0-255) alpha"}}),t._v(" "),r("h3",{attrs:{id:"typeface"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#typeface","aria-hidden":"true"}},[t._v("#")]),t._v(" Typeface "),r("Badge",{attrs:{text:"1.1.0"}})],1),t._v(" "),r("p",[t._v("The typeface of heading elements")]),t._v(" "),r("ThemeProperty",{attrs:{name:"headingTypeface",type:"android.graphics.Typeface",defaults:"default text Typeface"}}),t._v(" "),r("h3",{attrs:{id:"text-size"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#text-size","aria-hidden":"true"}},[t._v("#")]),t._v(" Text size "),r("Badge",{attrs:{text:"1.1.0"}})],1),t._v(" "),t._m(36),t._v(" "),r("ThemeProperty",{attrs:{name:"headingTextSizeMultipliers",type:"float[]",defaults:"<code>{2.F, 1.5F, 1.17F, 1.F, .83F, .67F}</code> (HTML spec)"}}),t._v(" "),t._m(37),t._v(" "),t._m(38),t._v(" "),r("ThemeProperty",{attrs:{name:"scriptTextSizeRatio",type:"float",defaults:"0.75F"}}),t._v(" "),t._m(39),t._v(" "),t._m(40),t._v(" "),r("p",[t._v("Color of a thematic break")]),t._v(" "),r("ThemeProperty",{attrs:{name:"thematicBreakColor",type:"@ColorInt int",defaults:"(text color) with 25 (0-255) alpha"}}),t._v(" "),t._m(41),t._v(" "),r("p",[t._v("Height of a thematic break")]),t._v(" "),r("ThemeProperty",{attrs:{name:"thematicBreakHeight",type:"@Px int",defaults:"Stroke width of context TextPaint"}}),t._v(" "),t._m(42),t._v(" "),t._m(43),t._v(" "),r("p",[t._v("Padding inside a table cell")]),t._v(" "),r("ThemeProperty",{attrs:{name:"tableCellPadding",type:"@Px int",defaults:"0"}}),t._v(" "),t._m(44),t._v(" "),r("p",[t._v("The color of table borders")]),t._v(" "),r("ThemeProperty",{attrs:{name:"tableBorderColor",type:"@ColorInt int",defaults:"(text color) with 75 (0-255) alpha"}}),t._v(" "),t._m(45),t._v(" "),r("p",[t._v("The width of table borders")]),t._v(" "),r("ThemeProperty",{attrs:{name:"tableBorderWidth",type:"@Px int",defaults:"Stroke with of context TextPaint"}}),t._v(" "),t._m(46),t._v(" "),r("p",[t._v("Background of an odd table row")]),t._v(" "),r("ThemeProperty",{attrs:{name:"tableOddRowBackgroundColor",type:"@ColorInt int",defaults:"(text color) with 22 (0-255) alpha"}}),t._v(" "),r("h3",{attrs:{id:"even-row-background"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#even-row-background","aria-hidden":"true"}},[t._v("#")]),t._v(" Even row background "),r("Badge",{attrs:{text:"1.1.1"}})],1),t._v(" "),r("p",[t._v("Background of an even table row")]),t._v(" "),r("ThemeProperty",{attrs:{name:"tableEventRowBackgroundColor",type:"@ColorInt int",defaults:"0"}}),t._v(" "),r("h3",{attrs:{id:"header-row-background"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#header-row-background","aria-hidden":"true"}},[t._v("#")]),t._v(" Header row background "),r("Badge",{attrs:{text:"1.1.1"}})],1),t._v(" "),r("p",[t._v("Background of header table row")]),t._v(" "),r("ThemeProperty",{attrs:{name:"tableHeaderRowBackgroundColor",type:"@ColorInt int",defaults:"0"}}),t._v(" "),r("h2",{attrs:{id:"task-list-drawable"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#task-list-drawable","aria-hidden":"true"}},[t._v("#")]),t._v(" Task list drawable "),r("Badge",{attrs:{text:"1.0.1"}})],1),t._v(" "),r("p",[t._v("Drawable of task list item")]),t._v(" "),r("ThemeProperty",{attrs:{name:"taskListDrawable",type:"android.graphics.drawable.Drawable",defaults:"ru.noties.markwon.spans.TaskListDrawable"}})],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("h1",{attrs:{id:"theme"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#theme","aria-hidden":"true"}},[this._v("#")]),this._v(" Theme")])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ul",[r("li",[r("code",[t._v("SpannableTheme#create(Context)")]),t._v(" - creates a "),r("strong",[t._v("default")]),t._v(" instance of `SpannableBuilder (with "),r("em",[t._v("defaults")]),t._v(" registered)")]),t._v(" "),r("li",[r("code",[t._v("SpannableTheme#builder")]),t._v(" - creates "),r("strong",[t._v("empty")]),t._v(" builder with "),r("strong",[t._v("no defaults registered")])]),t._v(" "),r("li",[r("code",[t._v("SpannableTheme#builderWithDefaults(Context)")]),t._v(" - create a "),r("strong",[t._v("default")]),t._v(" instance of builder (with default values registered)")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"warning custom-block"},[r("p",{staticClass:"custom-block-title"},[t._v("WARNING")]),t._v(" "),r("p",[r("code",[t._v("SpannbleTheme#builder")]),t._v(" method has an unfortunate naming. It should've been "),r("code",[t._v("emptyBuilder")]),t._v("\nor "),r("code",[t._v("builderNoDefaults")]),t._v(" because "),r("code",[t._v("#builder")]),t._v(" method returns a builder with "),r("strong",[t._v("no default\ntheme values registered")]),t._v(". To create a builder "),r("strong",[t._v("with")]),t._v(" default values registered\nuse "),r("code",[t._v("SpannableBuilder#builderWithDefaults(Context)")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"link-color"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#link-color","aria-hidden":"true"}},[this._v("#")]),this._v(" Link color")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("Controls the color of a "),e("a",{attrs:{href:"#"}},[this._v("link")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("sup",[this._v("*")]),this._v(" "),e("code",[this._v("TextPaint#linkColor")]),this._v(" will be used to determine linkColor of a context")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"block-margin"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#block-margin","aria-hidden":"true"}},[this._v("#")]),this._v(" Block margin")])},function(){var t=this.$createElement,e=this._self._c||t;return e("ul",[e("li",[this._v("lists")]),this._v(" "),e("li",[this._v("blockquotes")]),this._v(" "),e("li",[this._v("task lists")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"block-quote"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#block-quote","aria-hidden":"true"}},[this._v("#")]),this._v(" Block quote")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("Customizations for the "),e("code",[this._v("blockquote")]),this._v(" stripe")])},function(){var t=this.$createElement,e=this._self._c||t;return e("blockquote",[e("p",[this._v("Quote")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"stripe-width"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#stripe-width","aria-hidden":"true"}},[this._v("#")]),this._v(" Stripe width")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"stripe-color"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#stripe-color","aria-hidden":"true"}},[this._v("#")]),this._v(" Stripe color")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"list"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#list","aria-hidden":"true"}},[this._v("#")]),this._v(" List")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"list-item-color"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#list-item-color","aria-hidden":"true"}},[this._v("#")]),this._v(" List item color")])},function(){var t=this.$createElement,e=this._self._c||t;return e("ul",[e("li",[this._v("UL")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("ol",[e("li",[this._v("OL")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"bullet-item-stroke-width"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#bullet-item-stroke-width","aria-hidden":"true"}},[this._v("#")]),this._v(" Bullet item stroke width")])},function(){var t=this.$createElement,e=this._self._c||t;return e("ul",[e("li",[this._v("First")]),this._v(" "),e("li",[e("ul",[e("li",[this._v("Second")])])]),this._v(" "),e("li",[e("ul",[e("li",[e("ul",[e("li",[this._v("Third")])])])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"bullet-width"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#bullet-width","aria-hidden":"true"}},[this._v("#")]),this._v(" Bullet width")])},function(){var t=this.$createElement,e=this._self._c||t;return e("ul",[e("li",[this._v("First\n"),e("ul",[e("li",[this._v("Second\n"),e("ul",[e("li",[this._v("Third")])])])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"code"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#code","aria-hidden":"true"}},[this._v("#")]),this._v(" Code")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"inline-code-text-color"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#inline-code-text-color","aria-hidden":"true"}},[this._v("#")]),this._v(" Inline code text color")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("The color of the "),e("code",[this._v("code")]),this._v(" content")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"inline-code-background-color"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#inline-code-background-color","aria-hidden":"true"}},[this._v("#")]),this._v(" Inline code background color")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("The color of "),e("code",[this._v("background")]),this._v(" of a code content")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"block-code-text-color"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#block-code-text-color","aria-hidden":"true"}},[this._v("#")]),this._v(" Block code text color")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"language- extra-class"},[e("pre",{pre:!0,attrs:{class:"language-text"}},[e("code",[this._v("The color of code block text\n")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"block-code-background-color"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#block-code-background-color","aria-hidden":"true"}},[this._v("#")]),this._v(" Block code background color")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"language- extra-class"},[e("pre",{pre:!0,attrs:{class:"language-text"}},[e("code",[this._v("The color of background of code block text\n")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"block-code-leading-margin"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#block-code-leading-margin","aria-hidden":"true"}},[this._v("#")]),this._v(" Block code leading margin")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"code-typeface"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#code-typeface","aria-hidden":"true"}},[this._v("#")]),this._v(" Code typeface")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"code-text-size"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#code-text-size","aria-hidden":"true"}},[this._v("#")]),this._v(" Code text size")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"heading"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#heading","aria-hidden":"true"}},[this._v("#")]),this._v(" Heading")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"break-height"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#break-height","aria-hidden":"true"}},[this._v("#")]),this._v(" Break height")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"break-color"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#break-color","aria-hidden":"true"}},[this._v("#")]),this._v(" Break color")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("Array of heading text sizes "),e("em",[this._v("ratio")]),this._v(" that is applied to text size")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"script-ratio"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#script-ratio","aria-hidden":"true"}},[this._v("#")]),this._v(" Script ratio")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("Ratio to be applied for "),e("code",[this._v("sup")]),this._v(" (super script) & "),e("code",[this._v("sub")]),this._v(" (sub script)")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"thematic-break"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#thematic-break","aria-hidden":"true"}},[this._v("#")]),this._v(" Thematic break")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"color"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#color","aria-hidden":"true"}},[this._v("#")]),this._v(" Color")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"height"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#height","aria-hidden":"true"}},[this._v("#")]),this._v(" Height")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h2",{attrs:{id:"table"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table","aria-hidden":"true"}},[this._v("#")]),this._v(" Table")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"cell-padding"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#cell-padding","aria-hidden":"true"}},[this._v("#")]),this._v(" Cell padding")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"border-color"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#border-color","aria-hidden":"true"}},[this._v("#")]),this._v(" Border color")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"border-width"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#border-width","aria-hidden":"true"}},[this._v("#")]),this._v(" Border width")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{attrs:{id:"odd-row-background"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#odd-row-background","aria-hidden":"true"}},[this._v("#")]),this._v(" Odd row background")])}],!1,null,null,null);i.options.__file="theme.md";e.default=i.exports}}]);