<template>
    <div class="imageText">
        <div class="image-text-box" v-html="menuInfo"></div>
    </div>
</template>

<script>
    export default {
        props: {
            menuInfo: {}
        }
    }
</script>

<style lang="less">
    .imageText{
        .image-text-box{
            img{
                vertical-align: middle;
                max-width: 100% !important;
            }
        }
        *{
            font-weight: unset
        }
        b,strong{
            font-weight: bold;
        }
        h1{
            font-size: 2em;
            font-weight: bold;
            margin-block-start: 0.67em;
            margin-block-end: 0.67em;
            margin-inline-start: 0px;
            margin-inline-end: 0px;
        }
        h2{
            font-size: 1.5em;
            font-weight: bold;
            margin-block-start: 0.83em;
            margin-block-end: 0.83em;
            margin-inline-start: 0px;
            margin-inline-end: 0px;
        }
        h3{
            font-size: 1.17em;
            font-weight: bold;
            margin-block-start: 1em;
            margin-block-end: 1em;
            margin-inline-start: 0px;
            margin-inline-end: 0px;
        }
        h4{
            font-weight: bold;
            font-size: 1em;
            margin-block-start: 1.33em;
            margin-block-end: 1.33em;
            margin-inline-start: 0px;
            margin-inline-end: 0px;
        }
        h5{
            font-size: 0.83em;
            font-weight: bold;
            margin-block-start: 1.67em;
            margin-block-end: 1.67em;
            margin-inline-start: 0px;
            margin-inline-end: 0px;
        }
        h6{
            font-size: 0.67em;
            font-weight: bold;
            margin-block-start: 2.33em;
            margin-block-end: 2.33em;
            margin-inline-start: 0px;
            margin-inline-end: 0px;
        }
    }
</style>
<style lang="less" scoped>
    .imageText{
        height: 100%;
        overflow: auto;

        .image-text-box{
            padding: 20px 10px;
            word-wrap: break-word;
            line-height: 24px;
            text-align: justify;
        }
    }
</style>
