You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a Hugo project that uses blackfriday internally to render its content.
This is the nested list that I am using:
## Project Setup and Run
1. Importing the project into Eclipse
- Open Eclipse *-> Click* File *-> Click* Import *-> Click* General *-> Click* Existing Projects into Workspace. Follow on screen instructions.
- Make sure all JARs and class folders on the build path are present for the project.
2. Set API Keys
- Sign up for
- Google Maps JavaScript API key [here](https://accounts.google.com/ServiceLogin?passive=true&continue=https%3A%2F%2Fdevelopers.google.com%2Fmaps%2Fdocumentation%2Fjavascript%2F&service=ahsid#identifier)
- Weather API- OpenWeatherMap key [here](https://home.openweathermap.org/users/sign_up)
- Dark Sky API key [here](https://darksky.net/dev/register)
- Set the above keys in `wetter\WebContent\resources\includes\api.jsp` file; lines 4,5,6.
```Java
String api_key_GoogleMapsJavaScript = "INSERT_YOUR_KEY";
String api_key_OpenWeatherMap = "INSERT_YOUR_KEY";
String api_key_DarkSky = "INSERT_YOUR_KEY";
```
3. Optionally set Proxy ie. `http.proxyHost` && `http.proxyPort` in files:
- `wetter\WebContent\resources\includes\api.jsp`; line 24
4. Run the project on Apache Tomcat server.
I can not get this to render consistently due to the below reasons.
Fenced blocks within nested lists appear as inline code (when not preceded by empty new line)
The above sample produces this:
The only way to get the code block to render properly is to add a new blank line before the fenced code (and further intent it) which gives this:
But this hack leads to another issue.
The addition of the new line before the fence code in a list, surrounds the corresponding and all subsequent bullet contents in paragraph tags ie. <li><p>...</p></li> (even those which were earlier simply rendered as <li>...</li> ). Similar behaviour was also reported at gohugoio/hugo#5291.
This becomes prominent by the extra paragraph padding at the top level lists (2. Set API Keys...., 3. Optionally set Proxy.... ) in the screenshot above.
In all likelihood, I can at least made things look consistent by adding some extra css like
li>p {
padding:0;
margin:0
}
However, this doesn't address the underlying issue directly:
the need for fenced code block to be preceded by a new line in a list
stray addition of paragraph tags where not required
Expected Output:
<h2>Project Setup and Run</h2><ol><li>
Importing the project into Eclipse
<ul><li>Open Eclipse <em>-> Click</em> File <em>-> Click</em> Import <em>-> Click</em> General <em>-> Click</em> Existing Projects into Workspace. Follow on screen instructions.</li><li>Make sure all JARs and class folders on the build path are present for the project.</li></ul></li><li>
Set API Keys
<ul><li>
Sign up for
<ul><li>Google Maps JavaScript API key <ahref="https://accounts.google.com/ServiceLogin?passive=true&continue=https%3A%2F%2Fdevelopers.google.com%2Fmaps%2Fdocumentation%2Fjavascript%2F&service=ahsid#identifier">here</a></li><li>Weather API- OpenWeatherMap key <ahref="https://home.openweathermap.org/users/sign_up">here</a></li><li>Dark Sky API key <ahref="https://darksky.net/dev/register">here</a></li></ul></li><li>
Set the above keys in <code>wetter\WebContent\resources\includes\api.jsp</code> file; lines 4,5,6.
<pre><codeclass="language-Java">String api_key_GoogleMapsJavaScript = "INSERT_YOUR_KEY";
String api_key_OpenWeatherMap = "INSERT_YOUR_KEY";
String api_key_DarkSky = "INSERT_YOUR_KEY";
</code></pre></li></ul></li><li>
Optionally set Proxy ie. <code>http.proxyHost</code> && <code>http.proxyPort</code> in files:
<ul><li><code>wetter\WebContent\resources\includes\api.jsp</code>; line 24</li></ul></li><li>Run the project on Apache Tomcat server.</li></ol>
The text was updated successfully, but these errors were encountered:
+1. But this issue has already been reported in #484 and #526. An attempt to fix it seems to be done in #532. Can you review the PR and give it a comment, @fleeto?
I am working on a Hugo project that uses blackfriday internally to render its content.
This is the nested list that I am using:
I can not get this to render consistently due to the below reasons.
Fenced blocks within nested lists appear as inline code (when not preceded by empty new line)
The above sample produces this:
The only way to get the code block to render properly is to add a new blank line before the fenced code (and further intent it) which gives this:
But this hack leads to another issue.
The addition of the new line before the fence code in a list, surrounds the corresponding and all subsequent bullet contents in paragraph tags ie.
<li><p>...</p></li>
(even those which were earlier simply rendered as<li>...</li>
). Similar behaviour was also reported at gohugoio/hugo#5291.This becomes prominent by the extra paragraph padding at the top level lists (2. Set API Keys...., 3. Optionally set Proxy.... ) in the screenshot above.
In all likelihood, I can at least made things look consistent by adding some extra css like
However, this doesn't address the underlying issue directly:
Expected Output:
The text was updated successfully, but these errors were encountered: