git @ Cat's Eye Technologies Feedmark / c0c7089
Merge pull request #11 from catseye/develop-0.11 Develop 0.11 Chris Pressey authored 5 years ago GitHub committed 5 years ago
6 changed file(s) with 25 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
00 History of Feedmark
11 ===================
2
3 0.11
4 ----
5
6 * Fixed a bug with `--rewrite-markdown` under Python 3.x.
27
38 0.10
49 ----
0 Copyright (c)2019 Chris Pressey, Cat's Eye Technologies
0 Copyright (c)2019-2020 Chris Pressey, Cat's Eye Technologies
11
22 Permission is hereby granted, free of charge, to any person obtaining a
33 copy of this software and associated documentation files (the "Software"),
00 Feedmark
11 ========
22
3 *Version 0.10. Subject to change in backwards-incompatible ways without notice.*
3 *Version 0.11. Subject to change in backwards-incompatible ways without notice.*
44
55 **Feedmark** is a format for embedding structured data in Markdown files
66 in a way which is both human-readable and machine-extractable.
3838
3939 Or you can install it using `pip`:
4040
41 pip install Feedmark==0.9.2019.1015
41 pip install Feedmark==0.11
4242
4343 (Depending on your needs, you may wish to establish a virtual environment
4444 first. How to do this is outside the scope of this document.)
55
66 setuptools.setup(
77 name='Feedmark',
8 version='0.10',
8 version='0.11',
99 description='Feedmark, a curation-oriented subset of Markdown, and tools for processing it',
1010 long_description=long_description,
1111 long_description_content_type="text/markdown",
7878 help='Process no more than this many entries when making an Atom or HTML feed'
7979 )
8080
81 argparser.add_argument('--version', action='version', version="%(prog)s 0.10")
81 argparser.add_argument('--version', action='version', version="%(prog)s 0.11")
8282
8383 options = argparser.parse_args(args)
8484
217217 for document in documents:
218218 s = feedmark_markdownize(document, schema=schema)
219219 with open(document.filename, 'w') as f:
220 f.write(s.encode('UTF-8'))
220 f.write(s)
221221
222222 if options.output_html:
223223 from feedmark.formats.markdown import feedmark_htmlize
4040 'https://github.com/catseye/Feedmark/blob/master/eg/Recent%20Llama%20Sightings.md#2-llamas-spotted-near-mall'
4141 )
4242 os.unlink('feed.xml')
43
44 def test_rewrite_markdown(self):
45 with open('foo.md', 'w') as f:
46 f.write("""# Document
47
48 ### Entry
49
50 Have you heard, [2 Llamas Spotted Near Mall]()?
51
52 [2 Llamas Spotted Near Mall]: TK
53 """)
54 main(["foo.md", "--input-refdex={}/eg/refdex.json".format(self.prevdir), '--rewrite-markdown'])
55 self.assert_file_contains('foo.md', '[2 Llamas Spotted Near Mall]: eg/Recent%20Llama%20Sightings.md#2-llamas-spotted-near-mall')
56 os.unlink('foo.md')
4357
4458
4559 class TestFeedmarkCommandLine(unittest.TestCase):