[ci] format
This commit is contained in:
parent
518e8f7e25
commit
abfe73f5dc
2 changed files with 3 additions and 8 deletions
|
@ -32,8 +32,8 @@ export const markHTMLString = (value: any) => {
|
||||||
|
|
||||||
export function unescapeHTML(str: any) {
|
export function unescapeHTML(str: any) {
|
||||||
// If a promise, await the result and mark that.
|
// If a promise, await the result and mark that.
|
||||||
if(!!str && typeof str === 'object' && typeof str.then === 'function') {
|
if (!!str && typeof str === 'object' && typeof str.then === 'function') {
|
||||||
return Promise.resolve(str).then(value => {
|
return Promise.resolve(str).then((value) => {
|
||||||
return markHTMLString(value);
|
return markHTMLString(value);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
export { createAstro } from './astro-global.js';
|
export { createAstro } from './astro-global.js';
|
||||||
export { renderEndpoint } from './endpoint.js';
|
export { renderEndpoint } from './endpoint.js';
|
||||||
export {
|
export { escapeHTML, HTMLString, markHTMLString, unescapeHTML } from './escape.js';
|
||||||
escapeHTML,
|
|
||||||
HTMLString,
|
|
||||||
markHTMLString,
|
|
||||||
unescapeHTML,
|
|
||||||
} from './escape.js';
|
|
||||||
export type { Metadata } from './metadata';
|
export type { Metadata } from './metadata';
|
||||||
export { createMetadata } from './metadata.js';
|
export { createMetadata } from './metadata.js';
|
||||||
export {
|
export {
|
||||||
|
|
Loading…
Reference in a new issue