A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

12 rader
340 B

  1. name: basic
  2. label: sanity check for basic text parsing, no gimmicks
  3. input: "foobar"
  4. output: [Text(text="foobar")]
  5. ---
  6. name: basic2
  7. label: slightly more complex text parsing, with newlines
  8. input: "This is a line of text.\nThis is another line of text."
  9. output: [Text(text="This is a line of text.\nThis is another line of text.")]