question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add extra <div> container for note of type danger

See original GitHub issue

Let’s say I have in the DITA topic:

<note type="danger">It's dangerous</note>

and I publish using “args.gen.task.lbl”=“YES”.

The resulting HTML content looks like this:

<div class="dangertitle">DANGER</div>
<div class="note danger">It's  dangerous</div>

So it ends up as two sibling div’s. If for example I would publish note with type warning:

<note type="warning">It's dangerous</note>

the resulting HTML output looks like this:

<div class="note warning"><span class="warningtitle">Warning:</span>  It's dangerous</div>

so it contains a div which contains everything else. So we have an inconsistent approach, somehow in probably both cases we need a div which surrounds everything.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
raducoravucommented, Feb 22, 2017

This is not critical for us.

0reactions
stale[bot]commented, Mar 1, 2019

This issue has been automatically marked as stale because it has not been updated recently. It will be closed soon if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Insert extra div after every X divs - javascript - Stack Overflow
Note : I've separated out the code to create a new div element into a function to keep things simple. const divs =...
Read more >
CSS · Bootstrap
Bootstrap requires a containing element to wrap site contents and house our grid system. You may choose one of two containers to use...
Read more >
CSS · Bootstrap 3.3.6 Documentation - BootstrapDocs
Example: Column wrapping. If more than 12 columns are placed within a single row, each group of extra columns will, as one unit,...
Read more >
Type, class, and ID selectors - Learn web development | MDN
A type selector is sometimes referred to as a tag name selector or element selector because it selects an HTML tag/element in your...
Read more >
Bootstrap 4 Utilities - W3Schools
Use the border classes to add or remove borders from an element: ... <div class="float-xl-right">Float right on extra large screens or wider</div><br>
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found