¿Nueva línea en la tabla de markdown?
Tengo las siguientes celdas en una tabla de descuento:
|Something|Something else that's rather long|Something else|
Me gustaría poder insertar un salto en la línea media, para que la columna no sea tan grande. ¿Cómo puedo hacer eso en Markdown? ¿Necesito usar tablas HTML en su lugar?
4 answers
Use <br>
para forzar un salto de línea dentro de una celda de tabla.
Markdown Extra y MultiMarkdown permiten tablas, pero después de ensayo y error, parece que se necesita un salto de línea HTML en este caso.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-01-13 20:41:36
Cuando estás exportando a HTML, usar <br>
funciona. Sin embargo, si también está utilizando pandoc para exportar a LaTeX / PDF, debe usar tablas de cuadrícula :
+---------------+---------------+--------------------+
| Fruit | Price | Advantages |
+===============+===============+====================+
| Bananas | first line\ | first line\ |
| | next line | next line |
+---------------+---------------+--------------------+
| Bananas | first line\ | first line\ |
| | next line | next line |
+---------------+---------------+--------------------+
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-10-10 08:42:59
Use <br/>
. Por ejemplo:
Change log, upgrade version
Dependency | Old version | New version |
---------- | ----------- | -----------
Spring Boot | `1.3.5.RELEASE` | `1.4.3.RELEASE`
Gradle | `2.13` | `3.2.1`
Gradle plugin <br/>`com.gorylenko.gradle-git-properties` | `1.4.16` | `1.4.17`
`org.webjars:requirejs` | `2.2.0` | `2.3.2`
`org.webjars.npm:stompjs` | `2.3.3` | `2.3.3`
`org.webjars.bower:sockjs-client` | `1.1.0` | `1.1.1`
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-12-24 12:59:08
Solo para aquellos que están tratando de hacer esto en Jira
. Simplemente agregue \\
al final de cada línea y se creará una nueva línea:
|Something|Something else \\ that's rather long|Something else|
Hará esto:
Fuente: El texto se rompe en Jira
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-07-23 12:18:20