Skip to content

Commit

Permalink
インラインコードがブロックになっている Fix #2137
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Jan 14, 2021
1 parent 47f876b commit ed25310
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/client/app/common/views/components/code-core.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<highlightjs :language="lang" :code="code" />
<code class="inline" v-if="inline">{{ code }}</code>
<highlightjs v-else :language="lang" :code="code"/>
</template>

<script lang="ts">
Expand All @@ -23,11 +24,15 @@ export default Vue.extend({
});
</script>
<style lang="stylus" scoped>
// fallback
code
display block
overflow-x auto
padding .5em
color #333
background #f8f8f8
color #f8f8f8
background #272822
&.inline
display inline
&.hljs
display block
overflow-x auto
padding .5em
</style>

0 comments on commit ed25310

Please sign in to comment.