Coder Social home page Coder Social logo

Comments (4)

stefanw avatar stefanw commented on July 28, 2024

Eine Erklärung dazu:

Es gibt in Markdown keine Tabellen. Es gibt Tabellen in Markdown-Extension, aber die unterstützen nur einzeilige Zellen.

Tabellen werden im Gesetze-XML sehr auch teilweise zum Styling eingesetzt und nicht nur für tabellarische Daten. Meine Idee war, Tabellen in Listen (Zeilen) von Listen (Zellen) umzuwandeln. Das geht teilweise ordentlich schief, wenn es leere Zellen gibt, da Markdown keine leere Zellen unterstützt und dabei kaputt geht. Leere Zellen sind natürlich ein Anzeichen dafür, dass die Tabelle für Styling statt für tabellarische Daten genutzt wurde.

Die Tabellen-Konversion muss definitiv verbessert werden. Die Frage ist, welches Markdown dafür verwendet werden soll. Ich denke Listen von Listen ist immer noch ein gutes Format. Man muss nur mit leeren Zellen besser umgehen.

Vielleicht gibt es auch noch ein anderes Problem, das zu kaputten Tabellen führt.

from gesetze.

rriemann avatar rriemann commented on July 28, 2024

Selbst das jekyll von github kann auf Kramdown (ein anderer, meiner Meinung nach besserer Parser) umgestellt werden. Kramdown kann Tabellen!

http://kramdown.rubyforge.org/
http://kramdown.rubyforge.org/quickref.html#tables

Edit: Ah sorry, das Problem sitzt tiefer. Hab das Problem nicht gleich erfasst.

from gesetze.

nichtich avatar nichtich commented on July 28, 2024

Pandoc Markdown kann auch Tabellen mit mehreren Zeilen pro Zelle. Neben anderen Features sind mit Pandoc auch Literaturangaben in Markdown möglich. Ich würde es auch zur Normalisierung empfehlen.

from gesetze.

stefanw avatar stefanw commented on July 28, 2024

Pandoc Markdown Grid Tables sehen tatsächlich ganz gut aus. Ich habe die aktuelle Markdown syntax so gebaut, dass sie kompatibel mit GitHub Markdown/GitHub Pages rendering ist. Aber wenn wir eh eine eigene processing pipeline für statisches HTML rendern aufsetzen, dann kann ich mir gut vorstellen, dass wir Pandoc Markdown verwenden.

from gesetze.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.