'
+ + (escaped ? code : escape(code, true))
+ + '
\n';
+ }
+ return ''
+ + (escaped ? code : escape(code, true))
+ + '
\n';
+ }
+ blockquote({ tokens }) {
+ const body = this.parser.parse(tokens);
+ return `\n${body}\n`; + } + html({ text }) { + return text; + } + heading({ tokens, depth }) { + return `
${this.parser.parseInline(tokens)}
\n`; + } + table(token) { + let header = ''; + // header + let cell = ''; + for (let j = 0; j < token.header.length; j++) { + cell += this.tablecell(token.header[j]); + } + header += this.tablerow({ text: cell }); + let body = ''; + for (let j = 0; j < token.rows.length; j++) { + const row = token.rows[j]; + cell = ''; + for (let k = 0; k < row.length; k++) { + cell += this.tablecell(row[k]); + } + body += this.tablerow({ text: cell }); + } + if (body) + body = `${body}`; + return '${escape(text, true)}
`;
+ }
+ br(token) {
+ return 'An error occurred:
' + + escape(e.message + '', true) + + ''; + if (async) { + return Promise.resolve(msg); + } + return msg; + } + if (async) { + return Promise.reject(e); + } + throw e; + }; + } +} + +const markedInstance = new Marked(); +function marked(src, opt) { + return markedInstance.parse(src, opt); +} +/** + * Sets the default options. + * + * @param options Hash of options + */ +marked.options = + marked.setOptions = function (options) { + markedInstance.setOptions(options); + marked.defaults = markedInstance.defaults; + changeDefaults(marked.defaults); + return marked; + }; +/** + * Gets the original marked default options. + */ +marked.getDefaults = _getDefaults; +marked.defaults = _defaults; +/** + * Use Extension + */ +marked.use = function (...args) { + markedInstance.use(...args); + marked.defaults = markedInstance.defaults; + changeDefaults(marked.defaults); + return marked; +}; +/** + * Run callback for every token + */ +marked.walkTokens = function (tokens, callback) { + return markedInstance.walkTokens(tokens, callback); +}; +/** + * Compiles markdown to HTML without enclosing `p` tag. + * + * @param src String of markdown source to be compiled + * @param options Hash of options + * @return String of compiled HTML + */ +marked.parseInline = markedInstance.parseInline; +/** + * Expose + */ +marked.Parser = _Parser; +marked.parser = _Parser.parse; +marked.Renderer = _Renderer; +marked.TextRenderer = _TextRenderer; +marked.Lexer = _Lexer; +marked.lexer = _Lexer.lex; +marked.Tokenizer = _Tokenizer; +marked.Hooks = _Hooks; +marked.parse = marked; +const options = marked.options; +const setOptions = marked.setOptions; +const use = marked.use; +const walkTokens = marked.walkTokens; +const parseInline = marked.parseInline; +const parse = marked; +const parser = _Parser.parse; +const lexer = _Lexer.lex; + +export { _Hooks as Hooks, _Lexer as Lexer, Marked, _Parser as Parser, _Renderer as Renderer, _TextRenderer as TextRenderer, _Tokenizer as Tokenizer, _defaults as defaults, _getDefaults as getDefaults, lexer, marked, options, parse, parseInline, parser, setOptions, use, walkTokens }; +//# sourceMappingURL=marked.esm.js.map diff --git a/chrome/browser/resources/side_panel/reading_list/reading_list_app.ts b/chrome/browser/resources/side_panel/reading_list/reading_list_app.ts index 87debbe4418a69..9b26ac5a4898a5 100644 --- a/chrome/browser/resources/side_panel/reading_list/reading_list_app.ts +++ b/chrome/browser/resources/side_panel/reading_list/reading_list_app.ts @@ -59,9 +59,9 @@ export class ReadingListAppElement extends ReadingListAppElementBase { static override get properties() { return { - unreadItems_: {type: Array}, - readItems_: {type: Array}, - currentPageActionButtonState_: {type: Number}, + unreadItems_: {type: Array}, + readItems_: {type: Array}, + currentPageActionButtonState_: {type: Number}, buttonRipples: {type: Boolean}, loadingContent_: {type: Boolean}, }; diff --git a/chrome/browser/resources/webui_gallery/demos/cr_icons/cr_icons_demo.html.ts b/chrome/browser/resources/webui_gallery/demos/cr_icons/cr_icons_demo.html.ts index ed7d70b7ce3950..584f6dd6af8dfd 100644 --- a/chrome/browser/resources/webui_gallery/demos/cr_icons/cr_icons_demo.html.ts +++ b/chrome/browser/resources/webui_gallery/demos/cr_icons/cr_icons_demo.html.ts @@ -31,7 +31,9 @@ export function getHtml(this: CrIconsDemoElement) {