Skip to content

Inline code after latest update inserts newlines before and after the inline code. #363

@aphalo

Description

@aphalo

Describe the bug
Inline code after latest update inserts newlines before and after the inline code.

See https://www.r4photobiology.info/2023/01/ggspectra-0-3-10/

WordPress Editing Mode
Which WordPress editing mode you're using ?
Advanced Editor Tools (previously TinyMCE Advanced)
Should be irrelevant, as preexisting pages in the whole site were broken. I haven't edited anything since the automatic plugin update.

Frontend or Backend Issue
frontend: page rendering

To Reproduce
Steps to reproduce the behavior:
See for example https://www.r4photobiology.info/2023/01/ggspectra-0-3-10/ and almost every other post at https://www.r4photobiology.info

Expected behavior
Inline code to the displayed in line.

Screenshots
If applicable, add screenshots to help explain your problem.

This should be a single paragraph with no line breaks.
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] PC
  • OS: [e.g. iOS8.1] Win 10
  • Browser Firefox 109.0; Microsoft Edge 109.0.1518.55 (Official build) (64-bit)
  • Version Enlighter plugin 4.6.0
  • WordPress 6.1.1 running Nirvana theme.

Additional context

Plugin configuration

{
    "translation-enabled": true,
    "enlighterjs-init": "inline",
    "enlighterjs-assets-js": true,
    "enlighterjs-assets-themes": true,
    "enlighterjs-assets-themes-external": true,
    "enlighterjs-selector-block": "pre.EnlighterJSRAW",
    "enlighterjs-selector-inline": "code.EnlighterJSRAW",
    "enlighterjs-indent": 2,
    "enlighterjs-ampersandcleanup": true,
    "enlighterjs-linehover": true,
    "enlighterjs-rawcodedbclick": false,
    "enlighterjs-textoverflow": "scroll",
    "enlighterjs-linenumbers": true,
    "enlighterjs-theme": "eclipse",
    "enlighterjs-retaincss": false,
    "enlighterjs-language": "r",
    "toolbar-visibility": "default",
    "toolbar-button-raw": true,
    "toolbar-button-copy": true,
    "toolbar-button-window": true,
    "toolbar-button-enlighterjs": true,
    "tinymce-backend": true,
    "tinymce-frontend": false,
    "tinymce-formats": true,
    "tinymce-autowidth": false,
    "tinymce-tabindentation": false,
    "tinymce-keyboardshortcuts": true,
    "tinymce-font": "sourcecodepro",
    "tinymce-fontsize": "0.7em",
    "tinymce-lineheight": "1.4em",
    "tinymce-color": "#000000",
    "tinymce-bgcolor": "#f9f9f9",
    "gutenberg-backend": true,
    "quicktag-backend": true,
    "quicktag-frontend": false,
    "quicktag-mode": "html",
    "shortcode-mode": "disabled",
    "shortcode-inline": true,
    "shortcode-type-generic": true,
    "shortcode-type-language": true,
    "shortcode-type-group": false,
    "shortcode-filter-content": true,
    "shortcode-filter-excerpt": true,
    "shortcode-filter-widget": false,
    "shortcode-filter-comment": false,
    "shortcode-filter-commentexcerpt": false,
    "gfm-enabled": true,
    "gfm-inline": true,
    "gfm-language": "generic",
    "gfm-filter-content": true,
    "gfm-filter-excerpt": true,
    "gfm-filter-widget": true,
    "gfm-filter-comment": true,
    "gfm-filter-commentexcerpt": true,
    "compat-enabled": true,
    "compat-crayon": false,
    "compat-codecolorer": false,
    "compat-type1": true,
    "compat-type2": false,
    "compat-filter-content": true,
    "compat-filter-excerpt": true,
    "compat-filter-widget": false,
    "compat-filter-comment": false,
    "compat-filter-commentexcerpt": false,
    "cache-custom": false,
    "cache-path": "",
    "cache-url": "",
    "dynamic-resource-invocation": true,
    "ext-infinite-scroll": false,
    "jetpack-gfm-code": false,
    "ext-ajaxcomplete": false,
    "bbpress-shortcode": false,
    "bbpress-markdown": false
}

Custom theme configuration

/*@BASETHEME:enlighter*/

.enlighter-t-wpcustom{
	border-radius: 8px;
	border: solid 1px #e0e0e0;
	background-color: #eoeoeo;
}
.enlighter-t-wpcustom .enlighter-btn{
	border-radius: 3px;
	padding: 0;
	border: 1px solid #e0e0e0;
	margin: 0 0 0 8px;
	text-decoration: none;
	width: 23px;
	height: 23px;
	background-position: 0 0;
	background-size: contain;
}
.enlighter-t-wpcustom .enlighter-btn:hover{
	border-color: #c9c9c9;
}
.enlighter-t-wpcustom .enlighter-btn:after{
	content: '';
}
.enlighter-t-wpcustom.enlighter-hover.enlighter-linenumbers div.enlighter>div:hover{
	color: #444;
	background-color: #fffcd3;
}
.enlighter-t-wpcustom.enlighter-hover div.enlighter>div:hover{
	color: #444;
}
.enlighter-t-wpcustom .enlighter-raw{
	border-radius: 8px;
	padding: 0 5px 0 60px;
}
.enlighter-t-wpcustom div.enlighter>div{
	border: solid 0 #fff;
	line-height: 1.35em;
	color: #aaa;
}
.enlighter-t-wpcustom div.enlighter>div:FIRST-CHILD{
	border-radius: 8px 8px 0 0;
}
.enlighter-t-wpcustom div.enlighter>div:LAST-CHILD{
	border-radius: 0 0 8px 8px;
}
.enlighter-t-wpcustom div.enlighter>div.enlighter-special{
}
.enlighter-t-wpcustom.enlighter-linenumbers div.enlighter>div::before{
	border-right: solid 1px #e0e0e0;
}
.enlighter-t-wpcustom.enlighter-linenumbers div.enlighter>div:FIRST-CHILD::before{
	border-radius: 8px 0 0 0;
}
.enlighter-t-wpcustom.enlighter-linenumbers div.enlighter>div:LAST-CHILD::before{
	border-radius: 0 0 0 8px;
}
.enlighter-t-wpcustom .enlighter-text{
	color: #000;
}
.enlighter-t-wpcustom .enlighter-c0{
}
.enlighter-t-wpcustom .enlighter-c1{
}
.enlighter-t-wpcustom .enlighter-c2{
}
.enlighter-t-wpcustom .enlighter-c9{
}
.enlighter-t-wpcustom .enlighter-k0{
}
.enlighter-t-wpcustom .enlighter-k1{
}
.enlighter-t-wpcustom .enlighter-k2{
}
.enlighter-t-wpcustom .enlighter-k3{
}
.enlighter-t-wpcustom .enlighter-k4{
}
.enlighter-t-wpcustom .enlighter-k5{
}
.enlighter-t-wpcustom .enlighter-k6{
}
.enlighter-t-wpcustom .enlighter-k7{
}
.enlighter-t-wpcustom .enlighter-k8{
}
.enlighter-t-wpcustom .enlighter-k9{
}
.enlighter-t-wpcustom .enlighter-k10{
}
.enlighter-t-wpcustom .enlighter-k11{
}
.enlighter-t-wpcustom .enlighter-e0{
}
.enlighter-t-wpcustom .enlighter-e1{
}
.enlighter-t-wpcustom .enlighter-e2{
}
.enlighter-t-wpcustom .enlighter-e3{
}
.enlighter-t-wpcustom .enlighter-e4{
}
.enlighter-t-wpcustom .enlighter-s0{
}
.enlighter-t-wpcustom .enlighter-s1{
}
.enlighter-t-wpcustom .enlighter-s2{
}
.enlighter-t-wpcustom .enlighter-s3{
}
.enlighter-t-wpcustom .enlighter-s4{
}
.enlighter-t-wpcustom .enlighter-s5{
}
.enlighter-t-wpcustom .enlighter-n0{
}
.enlighter-t-wpcustom .enlighter-n1{
}
.enlighter-t-wpcustom .enlighter-n2{
}
.enlighter-t-wpcustom .enlighter-n3{
}
.enlighter-t-wpcustom .enlighter-n4{
}
.enlighter-t-wpcustom .enlighter-n5{
	text-decoration: underline;
}
.enlighter-t-wpcustom .enlighter-m0{
}
.enlighter-t-wpcustom .enlighter-m1{
}
.enlighter-t-wpcustom .enlighter-m2{
}
.enlighter-t-wpcustom .enlighter-m3{
}
.enlighter-t-wpcustom .enlighter-g0{
}
.enlighter-t-wpcustom .enlighter-g1{
}
.enlighter-t-wpcustom .enlighter-t0{
}
.enlighter-t-wpcustom .enlighter-t1{
}
.enlighter-t-wpcustom .enlighter-t2{
}
.enlighter-t-wpcustom .enlighter-t3{
}
.enlighter-t-wpcustom .enlighter-t4{
}
.enlighter-t-wpcustom .enlighter-t5{
}
.enlighter-t-wpcustom .enlighter-t6{
}
.enlighter-t-wpcustom .enlighter-t7{
}
.enlighter-t-wpcustom .enlighter-t8{
}
.enlighter-t-wpcustom .enlighter-x1{
}
.enlighter-t-wpcustom .enlighter-x2{
}
.enlighter-t-wpcustom .enlighter-x10{
}
.enlighter-t-wpcustom .enlighter-x11{
}
.enlighter-t-wpcustom .enlighter-x12{
	text-decoration: underline;
}
.enlighter-t-wpcustom .enlighter-x13{
}
.enlighter-t-wpcustom .enlighter-x14{
}
.enlighter-t-wpcustom .enlighter-x15{
}
.enlighter-t-wpcustom.enlighter-v-inline{
	border-radius: 3px;
	background-color: #fafafa;
}
.enlighter-t-wpcustom.enlighter-v-codegroup .enlighter,.enlighter-t-enlighter.enlighter-v-codegroup .enlighter-raw{
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}
.enlighter-t-wpcustom.enlighter-v-codegroup .enlighter div:first-child{
	border-radius: 0;
}
.enlighter-t-wpcustom.enlighter-v-codegroup .enlighter-codegroup-wrapper{
	position: relative;
}
.enlighter-t-wpcustom.enlighter-v-codegroup .enlighter-codegroup-switch{
	border-radius: 8px 8px 0 0;
	background-color: #f9f9f9;
	border-bottom: 1px solid #e0e0e0;
	padding: 5px 5px 5px 45px;
}
.enlighter-t-wpcustom.enlighter-v-codegroup .enlighter-codegroup-switch .enlighter-btn{
	padding: 3px 10px 3px 10px;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
	width: auto;
}
.enlighter-t-wpcustom.enlighter-v-codegroup .enlighter-codegroup-switch .enlighter-btn.enlighter-active{
	background-color: #e5e5e5;
	color: #000;
	border-color: #c9c9c9;
}
.enlighter-t-wpcustom .enlighter span{
	background-color: #eoeoeo;
}
.enlighter-t-wpcustom div.enlighter>div.enlighter-special:hover{
}
.enlighter-t-wpcustom .enlighter-x16{
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugEdition/CEEnlighter Community Edition - the opensource versionstatus/information-neededadditional informations required to investigate the issuestatus/validatedissue validated by the maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions