0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

[ci] format

This commit is contained in:
matthewp 2022-09-20 17:15:15 +00:00 committed by fredkbot
parent 518e8f7e25
commit abfe73f5dc
2 changed files with 3 additions and 8 deletions

View file

@ -32,8 +32,8 @@ export const markHTMLString = (value: any) => {
export function unescapeHTML(str: any) {
// If a promise, await the result and mark that.
if(!!str && typeof str === 'object' && typeof str.then === 'function') {
return Promise.resolve(str).then(value => {
if (!!str && typeof str === 'object' && typeof str.then === 'function') {
return Promise.resolve(str).then((value) => {
return markHTMLString(value);
});
}

View file

@ -1,11 +1,6 @@
export { createAstro } from './astro-global.js';
export { renderEndpoint } from './endpoint.js';
export {
escapeHTML,
HTMLString,
markHTMLString,
unescapeHTML,
} from './escape.js';
export { escapeHTML, HTMLString, markHTMLString, unescapeHTML } from './escape.js';
export type { Metadata } from './metadata';
export { createMetadata } from './metadata.js';
export {