Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline code disappear #4

Open
nyannko opened this issue Dec 2, 2017 · 3 comments
Open

Inline code disappear #4

nyannko opened this issue Dec 2, 2017 · 3 comments

Comments

@nyannko
Copy link

nyannko commented Dec 2, 2017

Hi, the theme looks really nice but the inline code didn't work and disappeared from html file.

@dotorimook
Copy link

dotorimook commented Sep 29, 2020

I experienced same thing.

in the assets/js/002.js file line 17, you can see the following code:

		// IF YOU USE MARKDOWN AND YOU HAVE BEEN GETTING ONE ADDITIONAL LINE IN YOUR TAG CODE
		// UNCOMMENT THE SECTION BELOW
		
		/* MARKDOWN SECTION /**/

		select_f.splice(-1, 1);

		/* END OF SECTION*/

you can comment it

//		select_f.splice(-1, 1);

or modify like this:

		select_f.splice(0, -1);

@dotorimook
Copy link

dotorimook commented Sep 29, 2020

In addition, you have to put below code:

		if (select_f.length === 1)
			continue;

like this:

...
	for (field in fields) {
		var num = 0;
		var select = fields[field].innerText;
		var select_f = select.split(/\n/);
		if (select_f.length === 1) // add this
			continue; // add this
		var tab = document.createElement("table");

		// IF YOU USE MARKDOWN AND YOU HAVE BEEN GETTING ONE ADDITIONAL LINE IN YOUR TAG CODE
		// UNCOMMENT THE SECTION BELOW
		
		/* MARKDOWN SECTION /**/
...

It is because number() in002.js makes the code into a form of code with number of line of the code. So you have to ignore it when code with one line.

@katcaola
Copy link

I had the same issue and was going to open a separate issue, but then saw this.

This fixed it perfectly, Thanks! ✌️😸

katcaola added a commit to katcaola/windows-95 that referenced this issue Aug 22, 2021
  Fixes issue h01000110#14 where letters display improperly.
    Letters now display properly and are no longer cut off.

  Fixes issue h01000110#4 where code spans (`code`) disappear
    Code spans now display and have formatting

  Add .gitignore
    Added gitignore to not save autogenerated files.
    You may want to edit this when publishing the website.
katcaola added a commit to katcaola/windows-95 that referenced this issue Aug 22, 2021
  Edited _config.xml
   Annotations have been added to the _config.xml to help others
   edit and more easily test their local changes

  Fixes issue h01000110#14 where letters display improperly.
    Letters now display properly and are no longer cut off.

  Fixes issue h01000110#4 where code spans (`code`) disappear
    Code spans now display and have formatting.

  Add .gitignore
    Added gitignore to not save autogenerated files.
    You may want to edit this when publishing the website.
katcaola added a commit to katcaola/windows-95 that referenced this issue Aug 22, 2021
  Edited _config.xml
   Annotations have been added to the _config.xml to help others
   edit and more easily test their local changes.

  Fixes issue h01000110#14 where letters display improperly.
    Letters now display properly and are no longer cut off.

  Fixes issue h01000110#4 where code spans (`code`) disappear
    Code spans now display and have formatting.

  Add .gitignore
    Added gitignore to not save autogenerated files.
    You may want to edit this when publishing the website.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants